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

[REG] QtWidgets: Window is not visible when size is set to 0 and layout will change the size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.1
    • 5.6.0 RC
    • None
    • Linux/X11
    • 11836be1274196bca5883973b3c8f31dc07c34f7

    Description

      Example code:

      #include <QApplication>
      #include <QGridLayout>
      #include <QLineEdit>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
      	QApplication app(argc, argv);
      
      	QWidget w;
      	w.setLayout(new QGridLayout);
      	w.layout()->addWidget(new QLineEdit);
      	w.resize(500, 0);
      	w.show();
      
      	return app.exec();
      }
      

      Actual result: window is not visible
      Expected result: window is visible (layout will change the window height, so it must be visible)

      Regression resulted from QTBUG-49445

      Attachments

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

        Activity

          People

            zaps166 Błażej Szczygieł
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes