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
    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    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
  •  
Qt is a trademark of The Qt Company.