Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QLabel/QPixmap drawing artifact with Qt 5.3 on DirectFB
Forum Updated to NodeBB v4.3 + New Features

QLabel/QPixmap drawing artifact with Qt 5.3 on DirectFB

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 664 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.
  • AdrianMcKnightA Offline
    AdrianMcKnightA Offline
    AdrianMcKnight
    wrote on last edited by
    #1

    Hi All

    I am using Qt 5.3 with DirectFB as the QPA.

    When I attempt to display a QLabel with a pixmap in it I am seeing a drawing artifact on screen. DirectFB is set to backbuffer so I think I should not be seeing anything but the finished render on screen.

    I have never seen an artifact quite like this so I am not sure what I am looking at. I captured a video of the artifact and extracted a before, during, and after frame. Picture here

    The code to display it is pretty straightforward:

                m_indicatorLabel = new QLabel();
                // m_indicatorOSD is a widget that holds one or more icons in an QHBoxLayout
                m_indicatorLabel->setPixmap(m_indicatorOSD.grab());
                m_indicatorLabel->adjustSize();
                m_indicatorLabel->move(res.width() - m_indicatorOSD.width(), 0); // position top right
                m_indicatorLabel->activateWindow();
                m_indicatorLabel->raise();
                m_indicatorLabel->show();
    

    Has anyone seen something like this before? Is there a way I can force the pixmap to render before it appears on screen? I tried setting WA_DontShowOnScreen, showing the widget, then unsetting WA_DontShowOnScreen but that had no effect.

    Thanks
    AMK

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Following your comment in the code, why grab a widget rather that setting a pixmap based on the icon you mentioned there ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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