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

QSplashScreen appears on a different monitor to CMainWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.0.1
    • Widgets: Main Window
    • None
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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