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

Using QWidget with DirectX

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 980 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.
  • M Offline
    M Offline
    MarkoFilipovic
    wrote on last edited by
    #1

    Hello,

    I have an application running on Windows 7 using Qt 4.8.6, which has been updated from Qt 3.3.6 just recently. There are QWidgets receving their background from DirectX, i.e. the whole widget is filled by DirectX output. This works fine with the following widget settings:

    • Attribute Qt::WA_NoSystemBackground is set
    • Overloaded widget method QPaintEngine* paintEngine() { return nulptr; }

    Such a "DirectX" widgets also contain visual controls in form of child widgets which can be moved freely within the parent widget. I have observed that child widgets do not receive paint events to update their visual contents as one would expect. For instance, when I pick a child widget A with the mouse and move it over some sibling widget B, the B widget does not get repainted properly, i.e. it has visual artefacts. This used to work with Qt3.

    Is there a way to configure QWidgets to use DirectX and to have child widgets properly receive paint event updates?

    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