Results 1 to 10 of 10

Thread: QApplication instance

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QApplication instance

    But it is not clear what are you're trying to do...
    Why are you starting an event loop in a plugin?
    The plugin should use the host applciation's event loop, not create its own.

    Ant what's with the thread?

  2. The following user says thank you to marcel for this useful post:

    nile.one (5th October 2007)

  3. #2
    Join Date
    Sep 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: QApplication instance

    in the example i get error
    ASSERT failure in QWidget: "Widgets must be created in the GUI thread."

    So, what's the solution? not to implement GUI in thread or what?
    But if i want to implement plugin's GUI in independent thread in case of not blocking the application while long-time work of plugin.

  4. #3
    Join Date
    Sep 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Lightbulb Re: QApplication instance

    ok, finally i got it working. i've chosen the solution to run the Qt GUI not in independent thread, i'll use the threads only in core classes.

Similar Threads

  1. Calling QApplication from a Non-QT app?
    By hickscorp in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 23:00
  2. Replies: 2
    Last Post: 16th March 2007, 10:04
  3. qapplication with open(/dev/name,O_RDWR) crashed???
    By ttbug in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 16th September 2006, 08:56
  4. Reponsabilities of QApplication and QMainWindow classes
    By yellowmat in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2006, 17:21
  5. creating a global instance
    By skatakam in forum General Programming
    Replies: 6
    Last Post: 24th February 2006, 17:26

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.