Results 1 to 5 of 5

Thread: Qt in other class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt in other class

    Quote Originally Posted by Morea
    But the thing is, I don't want to give up the controll to QApplication::exec(). I can't run it and get back to the other code I was running before that? That is the problem.

    Don't let the number of questions fool you. It might be a sign of a REAL newbee.
    Just do it!
    Basically, the whole QtCore module is accessible (containers and so on) without any need of QApplication::exec() but if you want piece of GUI you'll need to give up the control and rely on the event loop...
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Default Re: Qt in other class

    If you want to run some code in parallel to operating on a GUI, you might consider running it in a separate thread or as a timeout slot for a QTimer object.

Similar Threads

  1. Replies: 3
    Last Post: 27th December 2008, 19:34
  2. class in the class
    By baray98 in forum General Programming
    Replies: 2
    Last Post: 23rd July 2008, 07:01
  3. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  4. How to use Signal through direct connection
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2007, 07:07
  5. Replies: 2
    Last Post: 4th May 2006, 19:17

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.