Results 1 to 17 of 17

Thread: QWidget: Must construct a QApplication before a QPaintDevice

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWidget: Must construct a QApplication before a QPaintDevice

    hi

    i have the same problem. i use qt-4.5.2 and qwt 5.2 on winXP. i tried all my code in linux and all works fine.

    can anybody of you tell me the procedure on how to compile first qt and then qwt , in the right way?? i don't know why i get these problem! please!

    thank you in advance

  2. #2
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X

    Default Re: QWidget: Must construct a QApplication before a QPaintDevice

    Hi... i also have a similar question.. what if my application doesnot have any main function.. how would i construct QApplication???? Any idea????
    I am using firebreath integrated with QT library it doesnt have any main function and i am using QMacCocoaViewContainer during the compilation its giving me same error "QWidget Must construct a QApplication before a QPaintDevice" how should i declare QApplication

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

    Default Re: QWidget: Must construct a QApplication before a QPaintDevice

    Quote Originally Posted by Saurabh Singh View Post
    what if my application doesnot have any main function..
    Then it is not an application.
    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: 15
    Last Post: 21st April 2007, 17:46

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.