How to set a Window as front or back of a Flipable?
Unsolved
QML and Qt Quick
-
I have implemented my custom
Window
inMyWindow.qml
, and now I want to useFlipable
as well. However, when I tried to setMyWindow
asfront
ofFlipable
,the complier complained that Cannot assign object of type "MyWindow" to property of type "QQuickItem*" as the former is neither the same as the latter nor a sub-class of it. What should I do? Is there a better way than changeMyWindow.qml
directly ? -
I don't think you'll be able to use
Window
for that. AWindow
is, well, a window that is visible as free-standing window and not integrated in some other element. Depending on what properties, if any, unique toWindow
you use you might be able to simply change its type to 'Rectangle' and use that for theFlipable
.