Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69619

[REG: 5.9->5.10]: If the next item in tab order after tab widget is the last child item of that tab, there is a crash when destructing the tab widget

    XMLWordPrintable

Details

    • Windows
    • 81e298a51d08c510457b4a26b37c0d4aac5eba65

    Description

      If tab widget has child items, and the next child item in tab order after the tab widget itself, is the last child item in the tab's children list, destructing that widget crashes.

      Steps to reproduce:

      • Run attached sample
      • Close the application
      • EXPECTED: Application destructs properly
      • ACTUAL: Application crashes (see attached image)

      The crash can be prevented by switching the tab order of the two inner buttons (2 and 3) in .ui file:
      From

       <tabstops>
        <tabstop>pushButton_4</tabstop>
        <tabstop>tabWidget</tabstop>
        <tabstop>pushButton_3</tabstop>
        <tabstop>pushButton_2</tabstop>
       </tabstops>
      

      To

       <tabstops>
        <tabstop>pushButton_4</tabstop>
        <tabstop>tabWidget</tabstop>
        <tabstop>pushButton_2</tabstop>
        <tabstop>pushButton_3</tabstop>
       </tabstops>
      

      Or by simply moving the pushButton_3 child item before the pushButton_2 child item in tab_2's widgets list.

      Attachments

        1. qtbug69619.png
          qtbug69619.png
          47 kB
        2. qtbug69619.zip
          3 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-69619
          # Subject Branch Project Status CR V

          Activity

            People

              chehrlic Christian Ehrlicher
              jussi_witick Jussi Witick
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes