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. Popup as extern Window?
Forum Updated to NodeBB v4.3 + New Features

Popup as extern Window?

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

    Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?

    For example:

        Popup {
            id: popup
            x: 100
            y: 100
            width: 200
            height: 300
            modal: true
            focus: true
            closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
        }
    

    This code doesn't created new Window, and this causes problems when I have a small window and the dialog is larger than the window size.
    Same behavior for Menu, Popup, Dialogs and so on.

    Theoretically, i can do it myself, create a window and put a Popup there, but I'm not sure if it's so easy to do. I need to write a huge amount of code, close the window when clicked outside, position the window under the cursor, taking into account the corners of the screen, etc.

    Is it possible to somehow return the old behavior as it was in Controls 1.0, or perhaps someone has already done this?

    B JKSHJ 2 Replies Last reply
    0
    • F freedbrt

      Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?

      For example:

          Popup {
              id: popup
              x: 100
              y: 100
              width: 200
              height: 300
              modal: true
              focus: true
              closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
          }
      

      This code doesn't created new Window, and this causes problems when I have a small window and the dialog is larger than the window size.
      Same behavior for Menu, Popup, Dialogs and so on.

      Theoretically, i can do it myself, create a window and put a Popup there, but I'm not sure if it's so easy to do. I need to write a huge amount of code, close the window when clicked outside, position the window under the cursor, taking into account the corners of the screen, etc.

      Is it possible to somehow return the old behavior as it was in Controls 1.0, or perhaps someone has already done this?

      B Offline
      B Offline
      Bob64
      wrote on last edited by
      #2

      @freedbrt I asked a similar question some time ago. I am on my phone so can't easily search for it now but in any case the question did not yield any detailed information as I recall. The conclusion was that a popping up a separate Window is the correct and only way to do this.

      1 Reply Last reply
      0
      • F freedbrt

        Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?

        For example:

            Popup {
                id: popup
                x: 100
                y: 100
                width: 200
                height: 300
                modal: true
                focus: true
                closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
            }
        

        This code doesn't created new Window, and this causes problems when I have a small window and the dialog is larger than the window size.
        Same behavior for Menu, Popup, Dialogs and so on.

        Theoretically, i can do it myself, create a window and put a Popup there, but I'm not sure if it's so easy to do. I need to write a huge amount of code, close the window when clicked outside, position the window under the cursor, taking into account the corners of the screen, etc.

        Is it possible to somehow return the old behavior as it was in Controls 1.0, or perhaps someone has already done this?

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @freedbrt said in Popup as extern Window?:

        Is there are any way to open popup as Window like it was before in QuickControls 1.0 ?

        Not as of Qt 6.4, unfortunately. It is a known issue: https://bugreports.qt.io/browse/QTBUG-69558 The issue has been around for a long time, but is still on the radar for the Qt engineers (see the "Future Work" section of https://www.qt.io/blog/dialogs-in-qt-quick )

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        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