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. strong flicker when set QGLWidget as the viewport of QGraphicsView

strong flicker when set QGLWidget as the viewport of QGraphicsView

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 430 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.
  • hello qterH Offline
    hello qterH Offline
    hello qter
    wrote on last edited by hello qter
    #1

    I'm doing a project with qt 4.8.6 and running it on embedded system(x11). In the beginning, every thing is fine, but if I open a widget which has code QGraphicsView.setViewport(new QGLWidget) in constructor function, it will flicker.

    If I replace the QGLWidget with QWidget, it is fine. By comparing the difference between QGLWidget and QWidget, I have tried this:

    QGraphicsScene* scene = new QGraphicsScene(this);
    QGraphicsView* view = new QGraphicsView (scene,this);
    view -> setViewport(new QGLWidget);

    1 view->viewport()->setWindowFlags(Qt::Widget);
    2 view->viewport()->setAutoFillBackground(false);
    3 view->viewport()->setAttribute(Qt::WA_PaintOnScreen,false);
    4 view->viewport()->setAttribute(Qt::WA_OpaquePaintEvent);

    However this doesn't fix the issue. What could be the issue?

    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