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

Regression from 4.8: QWidget FixedHeight doesn't work correctly with small height.

XMLWordPrintable

    • b08b536f200738ef4707cd61c399be224da930c1

      Height is not really fixed with small heights. This cause odd behavior for example small floating toolbars with frames. QWidget is base class for other widget so also dockwidgets have the same issue. Bug prevents defining small floating widgets with fixed size.

      Not happening on Mac OS or Qt 4.8. Assumption is that this is Windows QPA specific issue.

      Test code. Just try to resize window height to see effect. Should be fixed height.

      #include <QApplication>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QWidget w;
          w.setGeometry(500,500,200,50);
          w.setFixedHeight(50);
          w.show();
          return a.exec();
      }
      

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

            dzedsystems Dyami Caliri
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes