Results 1 to 2 of 2

Thread: GUI + QThread Errors

  1. #1
    Join Date
    Sep 2006
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default GUI + QThread Errors

    Hello,
    I have created GUI with lots of widget. OnClick of run button i am executing some tasks which takes few minutes to complete. I am running these tasks in background by re-implementing QThread class, so that i can do some changes in GUI like open other widget, change position of dock widgets etc. But after fews changes in GUI i am getting following Error in Linux:

    Xlib: sequence lost (0x4aa19 > 0x3aa23) in reply type 0x8!
    Xlib: unexpected async reply (sequence 0x3abe3)!


    Can you please suggest which is the best way to re-implement QThread class?

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: GUI + QThread Errors

    Hi,

    It's not safe to change the GUI on another thread different from main thread(also called GUI thread). So you will have to perform data operation and send(with SIGNAL SLOTs mechanism) what to to with the GUI to the main thread.

    There are a lot of posts talking about same problems.
    Òscar Llarch i Galán

Similar Threads

  1. Spawn a QThread in another QThread
    By david.corinex in forum Qt Programming
    Replies: 2
    Last Post: 19th December 2007, 12:54
  2. QThread exec proplem to stop...
    By patrik08 in forum Qt Programming
    Replies: 29
    Last Post: 21st May 2007, 07:51
  3. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 21:44
  4. Is it possible to create a QThread without inheriting ?
    By probine in forum Qt Programming
    Replies: 6
    Last Post: 23rd March 2006, 22:51

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.