(Solved) Transparent Windows
Hi everybody, I’m creating a Qt Quick application for Desktop, and we need to make it borderless and with custom shape. I’m doing this this way:
- int main(int argc, char *argv[])
- {
- QmlApplicationViewer viewer;
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer.showExpanded();
- return app.exec();
- }
The thing is, opacity on parent node on main.qml doesn’t work. If this parent node is a Rectangle, and I set its opacity to 0, I’ll get an white rectangle on desktop. Is there any option to set on QmlApplicationViewer or this isn’t supported?
By the way, unfortunately, I’m using Windows 7..
9 replies
You might encounter a serious limitation when using transparent window with a custom frame in qml – minimizing application makes the qml interface broken (on windows xp), see the bug I’ve reported here:
http://bugreports.qt.nokia.com/browse/QTBUG-15429
Or maybe you’ve got some solution? Then post it here, thanks.
Yeah, it’s MouseArea objects that are broken. I see that you’re initializing it in a different way using QmlApplicationViewer, I’m doing it another way by extending QDeclarativeView (but also tried inside QMainWindow but it didn’t help). So maybe your code won’t encounter the hover bug, who knows. I see that you’re testing on Windows 7, but if it works, if you could test it also under Windows XP please let me know, thanks.
Btw. I’ve already implemented dragging and resizing my custom framed window, also maximizing works fine (by default you may encounter a problem that maximize makes the window fullscreen, hiding the taskbar, I have it resolved). So if you have some problems I might be able to help you.
Ahh and I also have custom drawn cursors working (default pointer and resize cursors) :)
Yes, I tried opengl, but I get white screen with only some of the interface being drawn.
http://bugreports.qt.nokia.com/browse/QTBUG-15429?focusedCommentId=133846#comment-133846
You must log in to post a reply. Not a member yet? Register here!
