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. QWidget and background transparency
QtWS25 Last Chance

QWidget and background transparency

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 387 Views
  • 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.
  • S Offline
    S Offline
    simopi
    wrote on last edited by
    #1

    My constructor:

    @
    TestWidget::TestWidget(QWidget *parent): QWidget(parent)
    {

    setStyleSheet("background: transparent;");
    setAttribute(Qt::WA_TranslucentBackground,true);
    setWindowFlags(Qt::FramelessWindowHint);
    setAutoFillBackground(false);
    setAttribute(Qt::WidgetAttribute::WA_ContentsPropagated);
    

    }
    @

    And nothing works. Can you help me? Thanks in advance...
    [Edited: Please use code tags “@@” – p3c0]

    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