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

Windows 7: QWizard resizes vertically when moving the window and using CustomizeWindowHint

    XMLWordPrintable

Details

    Description

      A QWizard with no window title buttons (using the Qt::CustomizeWindowHint flag) will resize vertically when the window is moved and the wizard's frame is not rendered/positioned correctly.

      This issue was not present on Windows XP, and it appears to be caused by QVistaHelper::resizeEvent() using some wrong offset/height if no window title button is present.

      The attached screenshot shows both the vertically resized dialog and the frame not showing in the top part of the wizard page.

      To reproduce it use one of the QWizard examples shipped with Qt, like the ClassWizard, and customize the window flags:

      // #1
        ClassWizard::ClassWizard(QWidget *parent) 
          : QWizard(parent, Qt::Dialog|Qt::CustomizeWindowHint)
      // #2
        ClassWizard::ClassWizard(QWidget *parent) 
          : QWizard(parent, Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowCloseButtonHint)
      

      #1 will reproduce the problem, and #2 will work as expected.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            hippydream Fabrizio Angius
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes