Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Display Item in full-screen

Display Item in full-screen

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 652 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.
  • E Offline
    E Offline
    ebatsin
    wrote on last edited by
    #1

    Hi!

    I am working on an app which is composed of a lot of sidebars/control elements/menu bar, and a 3D view (QQuickFramebufferObject) and I wanted that when pressing F5 (are any other key, it does not matter), the 3D view would occupy the whole window and the window would go fullscreen.

    On the fullscreen part, that's easy, I simply call showFullScreen on my Window.

    But I can't find a way to make my 3D view use the whole window space. The 3D view is far in the item tree and would be hidden by other things (and I don't know if there is a way to absolutely position items in Window coordinates when you are deep in the Item tree).

    My question is: Is there a way to achieve this effect without losing the 3D view OpenGL context and all the attached Qt connexions/attributes/etc (ie: Without C++ or QML noticing that the 3D view Item is not at the same place it was before)

    Thanks!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ebatsin
      wrote on last edited by
      #2

      Anyone with even just an idea on how this could be achieved ?

      J.HilkJ 1 Reply Last reply
      0
      • E ebatsin

        Anyone with even just an idea on how this could be achieved ?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @ebatsin hi

        have you thought about simply creating a new Window(.qml) component that contains the context of your 3dView.

        Create that and show that in full screen ? Instead of moving your whole application in fullscreen ?

        May be a workaround for the issue 🤷‍♂️


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        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