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

Wrong windowState in QWidget

XMLWordPrintable

      Create a widget and first maximize it and after that minimize it.
      If you then check the state of the widget it will report to be both minimized and maximized at the same time.

      Example Application:

      #include <QtGui>
      
      class MyWidget : public QWidget
      {
      
      public:
        MyWidget( QWidget * parent = 0 ) : QWidget(parent)
        {
         //setWindowFlags(Qt::WindowMinMaxButtonsHint);
      
         showMaximized();
         showMinimized();
      
         qDebug() << "IsMaximized" << isMaximized();
         qDebug() << "IsMinimized" << isMinimized();
        
        }
      };
      
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
      
          MyWidget widget;
          widget.show();
          
          return app.exec();
      }
      

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

            Unassigned Unassigned
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes