How can modify opacity of QT dialog using win32 api?
-
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);
-
@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.