Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Using Qt designer to set transparent background for qgis plugin dialog

Using Qt designer to set transparent background for qgis plugin dialog

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 3 Posters 716 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.
  • B Offline
    B Offline
    bemlun
    wrote on last edited by
    #1

    I'm studying Qt designer to create UI for Qgis plugin. I'm wondering how to set transparent background for the dialog. In the image below there's an example to understand what I have in my mind. I'd like a dialog with just the slider, with transparent background, and, if it's possible, without the title bar. Thank you all

    alt text

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

      Hi and welcome to devnet,

      You will have to write that in code. Set the Qt::FramelessWindowHint on your window flags. Since you are using python it will by Qt.FramelessWindowHint

      You can play with the Widgets WindowFlags example.

      As for transparency, you can set the Qt::WA_TranslucentBackground attribute.

      @Denni-0 please refrain from answering with your hatred of Designer if you don't have anything related to the question to say.

      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

      • Login

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