Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setTitleBar fails when registering a title bar inside a window embedded in the main ApplicationWindow #138

Open
YunhaoZZ opened this issue Sep 12, 2024 · 0 comments

Comments

@YunhaoZZ
Copy link

YunhaoZZ commented Sep 12, 2024

For some reason I need to register two hWND to the qml main window with QQuickItem. And in order to avoid other components being covered by those, I have to put all other components into a embedded window inside the main ApplicationWindow.

I found out when i put the title bar that I want to register with setTitleBar, it does not support the ability of a title bar, such as resizing, dragging, and toggling fullscreen.

Wondering if it's just my way to set up the title bar being wrong or qwindowkit just doesn't support registering something in a embedded window as the titlebar of the outside main ApplicationWindow.

I'd appreciate any information! Thank you :)

Edit: Qt version 6.7.2

Code snippet:
`ApplicationWindow {
id: mainApp

WindowAgent {
    id: windowAgent
}

 Component.onCompleted: {
    windowAgent.setup(mainApp);
 }

 Window {
        id: child
        
         TitleBar {
            id: titleBar
            Component.onCompleted: {
                   windowAgent.setTitleBar(titleBar);
            }
 }

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant