Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can modify opacity of QT dialog using win32 api?
Forum Updated to NodeBB v4.3 + New Features

How can modify opacity of QT dialog using win32 api?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 197 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Javalitterboy
    wrote on 12 Oct 2024, 03:01 last edited by
    #1

    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);
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 12 Oct 2024, 05:35 last edited by
      #2

      Why not use the Qt facilities to do this? What is the problem you are trying to solve?

      J 1 Reply Last reply 12 Oct 2024, 07:00
      0
      • C ChrisW67
        12 Oct 2024, 05:35

        Why not use the Qt facilities to do this? What is the problem you are trying to solve?

        J Offline
        J Offline
        Javalitterboy
        wrote on 12 Oct 2024, 07:00 last edited by
        #3

        @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 Reply Last reply
        0

        1/3

        12 Oct 2024, 03:01

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved