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

QComboBox items fall through the window

    XMLWordPrintable

Details

    Description

      List of QComboBox items are displayed behind the window.

      Steps to reproduce:
      1. Expand the combo box list.
      2. Collapse the combo box list or click anywhere.
      3. Click the window title.
      4. Expand the combo box list.

      With Qt 5.9.0 QComboBox works correctly.

      
      #include <QApplication>
      #include <QWidget>
      #include <QComboBox>
      #include <QBoxLayout>
      
      int main(int argc, char *argv[])
      {
       QApplication a(argc, argv);
      
      QWidget w;
       QVBoxLayout l( &w );
       QComboBox cmb( &w );
       cmb.addItems( QStringList() << "First" << "Second" << "Third" << "Fourth" );
       l.addWidget( &cmb );
      
      // without Qt::WindowStaysOnTopHint it works correctly
       w.setWindowFlags( Qt::WindowStaysOnTopHint );
       w.show();
      
      return a.exec();
      }
      
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard Richard Moe Gustavsen
              sargtlin Kozlov Ilya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes