May 4, 2012

owang.qt owang.qt
Lab Rat
4 posts

[Solved] QLabel->showFullScreen() on multiple monitors

 

Hi, I have a newbie question about using a QLabel to display an image full screen.

Is it possible to set the display ID, such that I can show the QLabel as full screen in the secondary monitor?

Thanks,

2 replies

May 4, 2012

AcerExtensa AcerExtensa
Hobby Entomologist
665 posts

Take a look here [doc-snapshot.qt-project.org]

 Signature 

God is Real unless explicitly declared as Integer.

May 4, 2012

owang.qt owang.qt
Lab Rat
4 posts

Thanks!

Solution to those that find their way here:

  1. q_label_to_show->setGeometry(QApplication::desktop()->screenGeometry(screenID));
  2. q_label_to_show->showFullScreen();

[Edit: Added @ tags; mlong]

 
  ‹‹ QThreadPool - wait for (at least one) free thread?      How does qHash(QStringRef&) work? ››

You must log in to post a reply. Not a member yet? Register here!