Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QLabel->showFullScreen() on multiple monitors
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 5.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    owang.qt
    wrote on last edited by
    #1

    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,

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      Take a look "here":http://doc-snapshot.qt-project.org/4.8/qdesktopwidget.html

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        owang.qt
        wrote on last edited by
        #3

        Thanks!

        Solution to those that find their way here:
        @
        q_label_to_show->setGeometry(QApplication::desktop()->screenGeometry(screenID));
        q_label_to_show->showFullScreen();
        @

        [Edit: Added @ tags; mlong]

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved