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

Custom SubWindow in QQuickWindow

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

    Hi,

    I want to display a custom subwindow in my qquickwindow. I want to render my own content into this subwindow.
    The reason why I don't render directly into the quickwindow is, that it "overdraws" the toolbar and buttons.

    Window {
        id: myMainWindow
        visible: true;
        width: 1920
        height: 1080
    
        MultiPointTouchArea{
            id: touchAreaOne;
            anchors.fill: parent
            mouseEnabled: true
            touchPoints: [
                TouchPoint{ id: touch1},
                TouchPoint{ id: touch2}
            ]
            onTouchUpdated: {
                console.log("touch");
            }
        }
        ToolBar {
            id: tool_bar
            z: 20 
            visible : true
    
        }
        Rectangle{
            id: subWindow
            color: "transparent"
            anchors.fill: parent
            CustomWindow {
    
            }
        }
    }
    

    So I tried it like the example above. But than I can see only the rectangle and not the window.
    I tried to implement the customwindow as qwindow and as qquickwindow. Although I would prefer the Qwindow.

    Does anyone has an idea how it could work

    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