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

QSplashScreen appears on a different monitor to CMainWindow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.1
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I have a 3 monitor setup (laptop plus 2 HDMI monitors), the laptop screen is set as the primary display on the left-hand side.

      When the following is run the splash screen appears centred on the laptop display, however the main window appears centred on the 2nd display - its default position appears to be based on the overall width of the desktop.

      I would expect the splash screen and main window to both appear on the same monitor.

       

       

      int main(int argc, char *argv[])
      {{{}}
      {{  }}{{QApplication app (argc, argv); }}
      {{  }}{{QPixmap pixmap (":/bitmap/SPLASH_SCREEN"); }}

      {{  }}{{QSplashScreen splash (pixmap);  }}
      {{  }}{{splash.show (); }}
      {{  }}{{app.processEvents (); }}
      {{  }}{{QTimer::singleShot (1500, &splash, &QWidget::close);   }}
      {{  }}{{CMainWindow w; }}
      {{  }}{{w.show();  }}
        return (app.exec());
      }
       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            chrisemsen Chris Emsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes