Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved OSX Fullscreen QWidget over MenuBar and Dock

    General and Desktop
    2
    2
    434
    Loading More Posts
    • 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.
    • R
      REDNES last edited by

      Qt5.6, OS X El Capitan. I need to select an area on the screen to take a screenshot, but the menu bar and dock are always on my window.

      My code:

      QScreen *screen = QGuiApplication::primaryScreen();
      QRect desktop = screen->virtualGeometry();
      
      region = new SelectRegion;
      
      region->setGeometry(desktop);
      region->show();
      region->focusWidget();
      region->activateWindow();
      region->raise();
      

      Screenshot

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        From your screenshot, it looks like you are trying to take a screenshot with OS X tools but not from a fullscreen application. So what exactly are you doing ?

        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 Reply Quote 0
        • First post
          Last post