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. Lockup when resizing QGLWidget
Qt 6.11 is out! See what's new in the release blog

Lockup when resizing QGLWidget

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

    OS: Linux x86-64, KDE 4.11.2
    Hardware: AMD Phenon 2, Radeon HD 7870 (fglrx driver)
    Qt Versions: 4.8.4, 5.0.2, 5.1.1

    I'm experiencing a lockup when resizing a QGLWidget on linux with AMD fglrx video drivers.

    If I run the attached code, grab a window corner and move the mouse back and forth then in short order I'll always lock up the system (display not updating, mouse and keyboard not appearing to do anything, can still perform a proper shutdown with power button though).

    It will happen with simpler code, just resizing a vanilla QGLWidget, but it seems to take a bit longer for the problem to trigger.

    Doesn't appear to happen with open source radeon drivers.

    Anyone have any ideas what'd cause this?

    @#include <QtWidgets/QApplication>
    #include <QtOpenGL/QGLWidget>

    class MyGLWidget : public QGLWidget {
    public:
    MyGLWidget(QWidget *parent=0) : QGLWidget(parent) {}
    protected:
    void paintEvent(QPaintEvent *event) {
    QPainter p;
    p.begin(this);
    p.fillRect(this->rect(), QColor(255, 0, 0));
    p.end();
    }
    };

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    MyGLWidget widget;
    widget.show();
    
    return a.exec&#40;&#41;;
    

    }
    @

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

      Hi and welcome to devnet,

      Since it might be a driver/library interaction issue, I think you should ask this question on the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)

      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