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
Forum Updated to NodeBB v4.3 + New Features

QWidget and background transparency

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 390 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.
  • S Offline
    S Offline
    simopi
    wrote on 10 Dec 2014, 13:42 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

    1/1

    10 Dec 2014, 13:42

    • Login

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