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. Rendering Question
Qt 6.11 is out! See what's new in the release blog

Rendering Question

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 523 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.
  • T Offline
    T Offline
    TeamGregor
    wrote on last edited by TeamGregor
    #1

    I have a method I need some clarity on

           
            ui->horizontalLayout->removeWidget(render_window);
            render_window->setParent(nullptr);
            render_window->setFocusPolicy(Qt::NoFocus);
            if (running) {
                render_window->setVisible(true);
                render_window->RestoreGeometry();
                list->show();
            }
        }
    

    I'm trying to get this rendered popup Window to its size and position.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Except from that this does not even compile - what should this function do? Why do you remove a widget from a layout and show it directly?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      T 1 Reply Last reply
      0
      • T Offline
        T Offline
        TeamGregor
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          Except from that this does not even compile - what should this function do? Why do you remove a widget from a layout and show it directly?

          T Offline
          T Offline
          TeamGregor
          wrote on last edited by TeamGregor
          #4

          @Christian-Ehrlicher
          The function pops out the rendering video/image to another window to show it directly. I'm asking if it's possible to retain it's size and position like a main window.

          So effectively I'm asking, can you keep track of a size/position of a popout window, so next time, it loads in the same spot.

          Christian EhrlicherC 1 Reply Last reply
          0
          • T TeamGregor

            @Christian-Ehrlicher
            The function pops out the rendering video/image to another window to show it directly. I'm asking if it's possible to retain it's size and position like a main window.

            So effectively I'm asking, can you keep track of a size/position of a popout window, so next time, it loads in the same spot.

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @TeamGregor said in Rendering Question:

            So effectively I'm asking, can you keep track of a size/position of a popout window, so next time, it loads in the same spot.

            Still don't understand the use-case but you have to remember it by yourself.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            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