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. QGraphicsViewe without any "Frame" in Full screen - how to?
Qt 6.11 is out! See what's new in the release blog

QGraphicsViewe without any "Frame" in Full screen - how to?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 370 Views 2 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.
  • ademmlerA Offline
    ademmlerA Offline
    ademmler
    wrote on last edited by
    #1

    Hi,

    I have a QGraphicsView (including a Scene) in my MainWindow.
    Is there a way to "detach" this View and show it Fullscreen without any "frame or other elements" around?
    And how to come back to normal view mode?

    Thx and regards

    Pl45m4P JoeCFDJ 2 Replies Last reply
    0
    • ademmlerA ademmler

      Hi,

      I have a QGraphicsView (including a Scene) in my MainWindow.
      Is there a way to "detach" this View and show it Fullscreen without any "frame or other elements" around?
      And how to come back to normal view mode?

      Thx and regards

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @ademmler

      Put it in a QDockWidget or in its own (maybe even frameless/borderless) QWidget.

      And how to come back to normal view mode?

      You have to find a way, since FramelessWindowHint removes all window/frame decorations and shows only the rendered widget itself.
      ( maybe a QWidget with a layout and your QGraphicsView + some control buttons)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • ademmlerA ademmler

        Hi,

        I have a QGraphicsView (including a Scene) in my MainWindow.
        Is there a way to "detach" this View and show it Fullscreen without any "frame or other elements" around?
        And how to come back to normal view mode?

        Thx and regards

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @ademmler QGraphicsView inherits QFrame.
        step1: remove it from the current layout
        step2: set its parent to nullptr
        step3: save its flags and size
        step4: set its size to full screen
        step5: set flag to show it on the top

        reverse these steps when it is set back.

        1 Reply Last reply
        2

        • Login

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