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

Transparent of QWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 195 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.
  • T Offline
    T Offline
    TomNow99
    wrote on last edited by TomNow99
    #1

    Hi,
    My problem is extended problem of one user. His problem:
    https://stackoverflow.com/questions/51644685/display-widget-on-top-of-qvideowidget-with-qmediaplayer

    So this user want a QPushButton on the top of QVideoWidget. And the solution was:
    Create QWidget with QVBoxLayout on it. Add QVideoWidget to this layout and set QPushButton parent's to QVideoWidget. Perfect. It works!

    And now my problem: I would like to set this label's opacity ( or QPushButton's opacity ) to for example 0.1. One solution is like:

    label->setStyleSheet("QLabel {background-color:rgba(255, 0, 0, 25);}");
    

    And this works, but I would like something other. Now I see gray square ( I see QWidget where is layout ). I would like to see video from QVideoWidget.

    In other words: now I see my parent background. I would like to see my brother background.

    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