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. About directdraw, Qt::FramelessWindowHint and Qt::WA_TranslucentBackground

About directdraw, Qt::FramelessWindowHint and Qt::WA_TranslucentBackground

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 3.6k 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.
  • G Offline
    G Offline
    Gateslu
    wrote on last edited by
    #1

    Hi all,
    recently, i have a project about dispaly video, and this project use the directdraw to display the video on the qwidget with QWidget::winId() which is a child widget in the QMainwindow, and it works.
    but now there is a problem, when i use setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint ) and setAttribute(Qt::WA_TranslucentBackground) in the qmainwindow, the child widget dose not work, the video can not display, is anybody can help me? thank you!

    1 Reply Last reply
    0
    • N Offline
      N Offline
      none
      wrote on last edited by
      #2

      I am probably not able to help you but I am interested in how you use directdraw - could you post a short code snippet that shows how you write the image data to the display?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        EdwardK
        wrote on last edited by
        #3

        Hi I'm busy with directdraw (qt) project I will post results when I have one

        if someone has info on this please post it or maybe someone on qt team already done it , help appreciated :)

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vittalonline
          wrote on last edited by
          #4

          hi try this

          videoScreen->setWindowFlags(videoScreen->windowFlags()| Qt::FramelessWindowHint);

          and

          setAttribute(Qt::WA_TranslucentBackground);

          with

          setAttribute(Qt::WA_NoSystemBackground,false);
          setStyleSheet("background-color: rgba(0,0,0,100%);"
                        "border:1px solid gray;"
                        "border-radius: 0px;"
                        );
          

          working fine..

          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