Make Independent Popup
Solved
QML and Qt Quick
-
I have an app which is small in terms of width and height, I want a popup to show when a button is clicked. Problem is the popup is larger than the app window and when i open it, it scales down and looks weird
APP
APP WITH POPUP
POPUP CONTENT IN DESIGNER
How can i make the popup independent from the app window, like this:
Or is there a better approach rather than using popup, it would be nice if i were able to move the popup/window around.
-
Use a Window instead of a Popup.
-
Use a Window instead of a Popup.
-
@GrecKo Thanks
I've gotten it sorted out. I encapsulated the component i wanted to show inside a window and created it using
Qt.createComponent()
var playListComponent = Qt.createComponent("CustomPlaylist.qml") var window = playListComponent.createObject(rootWindow) window.show()
The root element of
CustomPlaylist.qml
is aWindow