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. Transparent window with frame
Qt 6.11 is out! See what's new in the release blog

Transparent window with frame

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.1k Views 3 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.
  • G Offline
    G Offline
    GBdev
    wrote on last edited by
    #1

    Hi,

    Every piece of code concerning a transparent window I came across was setting a FramelessWindowHint window flag.

    I would like to have a transparent window WITH a frame. Is it possible ?

    I tried the obvious solution which was to simply set the background-color: transparent style and WA_TranslucentBackground attribute for my main window and its content and I ended up with a black background (if I do set the FramelessWindowHint window flag however, it works).

    Hence my question : should I spend a few hours trying to find a way to have both a transparent window and a frame or is it simply unachievable ?

    I should add that I am only interested in Windows portability.

    Thank you for your help !

    1 Reply Last reply
    2
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should also add which version of Qt you are using, on which version of Windows.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vlatro
        wrote on last edited by
        #3

        Faced the same need.
        Qt 5.15 or newer.
        Since Qt is declared cross-platform it would be nice to have platform-independent way...

        1 Reply Last reply
        0

        • Login

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