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

QMainWindow::resize() doesn't work correctly before window is shown on dual monitor setup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.0
    • None
    • Linux/X11/KDE. Qt4.6.0

    Description

      When calling resize() on a mainwindow - with a size that should use both screen of your dual monitor setup - before calling window.show() will resize the window such that it fits on a single monitor.

      Let me clarify. Suppose you have two monitors, both with 1600x1200 resulotion. Calling mainwindow.resize(2400,1000) before calling mainwindow.show will resize the window as if you'd called mainwindow.resize (1600,1000).

      Example code is attached.

      Attachments

        1. main.cpp
          0.3 kB
        2. Test.h
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tiemen T Schut
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes