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. Fullscreen widgets under GNU/Linux
QtWS25 Last Chance

Fullscreen widgets under GNU/Linux

Scheduled Pinned Locked Moved General and Desktop
videowidgetsfullscreengnulinuxx11
3 Posts 2 Posters 1.8k 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.
  • G Offline
    G Offline
    gagiD
    wrote on 4 Jun 2015, 17:09 last edited by
    #1

    Hi,

    I wrote this function for fullscreen:

    void Player::setFullScreen(bool fullScreen) {
        Qt::WindowFlags flags = windowFlags();
    
        if (fullScreen) {
            flags |= Qt::Window;
            flags &= ~Qt::SubWindow;
            setWindowFlags(flags);
    
            showFullScreen();
        } else {
            flags &= ~(Qt::Window | Qt::SubWindow);
            setWindowFlags(flags);
    
            showNormal();
        }
    }
    

    And after some time it crash:
    alt image

    What should I change?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jun 2015, 22:32 last edited by
      #2

      Hi,

      Can you give more information about your crash ? e.g. a stack trace ?

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gagiD
        wrote on 5 Jun 2015, 01:51 last edited by
        #3

        Just to be clear, it's not app crash, I did not describe it good.
        Sometimes fullscreen mode look messy(look at image), let say it's happening every 10th time.
        But, I can exit from that messy fullscreen and video plays in normal mode.

        I tried:

        resize(QApplication::desktop()->width(), QApplication::desktop()->height());
        

        But no effect.

        @SGaist
        I have Gamma Ray, I guess it can help.
        Which informations are relevant?

        1 Reply Last reply
        0

        3/3

        5 Jun 2015, 01:51

        • Login

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