How can modify opacity of QT dialog using win32 api?
-
wrote on 12 Oct 2024, 03:01 last edited by
I obtained the window handle through the window title.
After changing the transparency, the window only flickered briefly and its position changed.
The target window is implemented using the QT5 framework.handle = FindWindow(NULL, title); style_ex = GetWindowLong(handle , -20); SetWindowLong(handle , -20 , style_ex | 0x00080000); SetLayeredWindowAttributes(handle, 0, 100, 2);
-
wrote on 12 Oct 2024, 05:35 last edited by
Why not use the Qt facilities to do this? What is the problem you are trying to solve?
-
wrote on 12 Oct 2024, 07:00 last edited by
@ChrisW67 I am doing secondary development in Sketchup software, and I need to modify the window style to enrich the convenience and interactivity of the tool.
1/3