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. QOpenGLWidget Performance Issue
QtWS25 Last Chance

QOpenGLWidget Performance Issue

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • JorganMonesJ Offline
    JorganMonesJ Offline
    JorganMones
    wrote on last edited by JorganMones
    #1

    When combining a QOpenGLWidget with a regular QWidget on the same form, performance is impaired such that interaction with the other widgets is 'sluggish'.

    Below is an example:

    • With QGLWidget, slider dragging the slider is 'snappy'
    • With QOpenGLWidget, slider dragging is 'sluggish'
        QSlider *testWidget = new QSlider(Qt::Horizontal, this);
        testWidget->resize(400,30);
    
        QOpenGLWidget* oglWidget = new QOpenGLWidget(this);
        //QGLWidget* oglWidget = new QGLWidget(this);
        oglWidget->resize(60,60);
        oglWidget->move(0,100);
    
    

    My questions are:

    • Why is QOpenGLWidget behavior so different?
    • Is there a configuration for QOpenGLWidget that provides for 'more responsive' rendering?
    • Is QGLWidget still viable for new development, even though deprecated?

    EDIT :

    • Windows 10
    • Qt Versions 5.5 and 5.7

    EDIT 3 :
    These open bug report might explain the cause of the issue:

    https://bugreports.qt.io/browse/QTBUG-54034?jql=text ~ "QOpenGLWidget"
    https://bugreports.qt.io/browse/QTBUG-45192

    Wrapping in native QWindow has issues.

    Is there a solution that still uses QOpenGLWidget (i.e. some way to disable scene composition with other widgets? )

    Thanks!

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

      Hi and welcome to devnet,

      You should also add which version of Qt you are using as well as the OS you are running.

      In any case, you should take a look a the bug report system to see if there's something about it.

      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