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. How to set the fullscreen of a QVideoWidget on another screen

How to set the fullscreen of a QVideoWidget on another screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmediaplayerqvideowidgetmedia playermediaplayervideoplayer
3 Posts 2 Posters 385 Views
  • 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.
  • S Offline
    S Offline
    Simi
    wrote on 7 Dec 2023, 17:54 last edited by
    #1

    Hi everyone,
    I am currently working on a custom media player and I ran into a problem, that with setFullscreen() it only shows it on the primary screen. I would like to implement, that it sets the fullscreen on the screen, which the application is on, at the time of pressing the fullscreen button.
    Thanks in advance

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Dec 2023, 20:04 last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt ?
      On which OS ?
      How are you making your application full screen ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 7 Dec 2023, 21:52
      0
      • S SGaist
        7 Dec 2023, 20:04

        Hi and welcome to devnet,

        Which version of Qt ?
        On which OS ?
        How are you making your application full screen ?

        S Offline
        S Offline
        Simi
        wrote on 7 Dec 2023, 21:52 last edited by
        #3

        @SGaist Hi,
        I am using Qt version 6.5.0,
        on Windows,
        and to open fullscreen I am using the following code:

        void VideoWidget::mouseDoubleClickEvent(QMouseEvent *event)
        {
            setFullScreen(!isFullScreen());
            event->accept();
        }
        

        VideoWidget is just a derived class from QVideoWidget

        1 Reply Last reply
        0

        2/3

        7 Dec 2023, 20:04

        • Login

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