Results 1 to 2 of 2

Thread: QT application with opengl drops xorg session

  1. #1
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    63
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default QT application with opengl drops xorg session

    Hello, colleagues !

    I try to develop qt application with opengl support. I put QGLWidget subclass object onto QMainWindow. But sometimes on resize or exit event xorg user session is terminated and I drop on login manager.

    Here is my glwidget realization.
    Qt Code:
    1. #include "glwidget.h"
    2.  
    3. GLWidget :: GLWidget (QWidget *parent, Qt::WFlags f)
    4. : QGLWidget (parent, 0, f)
    5. {
    6. }
    7.  
    8. GLWidget :: ~GLWidget (void)
    9. {
    10. }
    11.  
    12. void GLWidget :: initializeGL (void)
    13. {
    14. }
    15.  
    16. void GLWidget :: paintGL (void)
    17. {
    18. }
    19.  
    20. void GLWidget :: resizeGL (int width, int height)
    21. {
    22. }
    To copy to clipboard, switch view to plain text mode 

    My OS is Gentoo Linux 2008.0. Any ideas.
    Best regards,
    Yuriy Rusinov.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT application with opengl drops xorg session

    Check your OpenGL drivers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.