Results 1 to 2 of 2

Thread: QGLWidget in a plugin

  1. #1
    Join Date
    May 2011
    Posts
    30
    Thanks
    1

    Default QGLWidget in a plugin

    I use plugins in my application. Each plugin provides application with widget. Every works ok. But when I try to load plugin with QGLWidget application crashes with message: QApplication must be created before QPainterDevice.
    How can I fix the problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGLWidget in a plugin

    Hard to say without seeing the code. It is likely you have some static QPaintDevice derived object somewhere.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 10:55
  2. Problem with a plugin which depends on another plugin
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 24th June 2011, 18:30
  3. Replies: 1
    Last Post: 8th October 2010, 11:38
  4. Plugin and shared class between plugin and application
    By wishper in forum Qt Programming
    Replies: 7
    Last Post: 23rd August 2010, 17:00
  5. Replies: 0
    Last Post: 16th September 2009, 02:33

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.