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

setFixedSize doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4: Low
    • None
    • 5.1.0 Beta 1, 5.1.0 RC1, 5.1.0
    • Widgets: Main Window
    • None
    • * Windows 8 64-bit
      * mingw-w64
      * GCC 4.8
      * Static Qt 4.8 (the latest stable git version, as of 02.06.2013)
      * Static Qt 5.1 (the latest stable git version, as of 01.06.2013)

    Description

      Consider the following code (MainWindow derived from QMainWindow):

      MainWindow::MainWindow()
      {
          setFixedSize(256, 59);
          show();
      }
      

      If I run this with Qt 4.8 - I get a normal non-resizeable window.

      However, if I run this with Qt 5.1 - I can still see double-sided arrows, when I hover my mouse over the frame and I can resize the window vertically by 14 pixels. If I put 73 instead of 59 - it becomes truly fixed, but the arrows do not disappear. If I put setWindowFlags(Qt::MSWindowsFixedSizeDialogHint) between setFixedSize and show - works as expected.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jeremejevs Olegs Jeremejevs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes