(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)
- QApplication app(argc, argv);
- QmlApplicationViewer viewer;
- 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..
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:
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) :)