Results 1 to 3 of 3

Thread: run a QMessageBox from a separate QThread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default run a QMessageBox from a separate QThread

    Hi to all I would exec a QMessageBox from a separate thread but I can not.

    Which can be the problem?

    regards
    Franco Amato

  2. #2
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: run a QMessageBox from a separate QThread

    Anyone can reply? I would inform the user of something in a separate user but seems'not possible.

    How can I solve my problem? I searched in the examples but there is nothing similar
    Franco Amato

  3. #3
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: run a QMessageBox from a separate QThread

    Yes, you CAN'T access any gui from separate thread. Just emit a signal with notification text and write a slot in your gui widget that will QMessageBox this text

Similar Threads

  1. QMessageBox in slot signaled by QThread
    By jkv in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2009, 19:41
  2. Executing slots in a separate QThread?
    By kachofool in forum Newbie
    Replies: 3
    Last Post: 11th December 2009, 20:02
  3. separate a QString
    By Zergi in forum Newbie
    Replies: 1
    Last Post: 18th July 2008, 21:50
  4. Communication between QThread and Yes/No QMessageBox?
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 11
    Last Post: 25th January 2007, 03:45
  5. QThread, QMessageBox, gui thread
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 25th October 2006, 12:23

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.