Results 1 to 14 of 14

Thread: connect, disconnect and reconnect problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Platforms
    Unix/X11 Windows

    Default Re: connect, disconnect and reconnect problem (code fragments)

    OK, I see the point. The good thing is to realize that it is indeed my code that is erroneous, the bad news
    is that I have to think really hard for a good solution, I'll study on Queued Connections.
    Thanks a lot

    best jan

  2. #2
    Join Date
    Dec 2007
    Posts
    27
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: connect, disconnect and reconnect problem (code fragments)

    Hi Jan,

    I forget to tell you. You can try to move the object with moveToThread(QThread* targetThread) to your main thread before you do the connect. Not perfect but should work.

  3. #3
    Join Date
    Mar 2008
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Platforms
    Unix/X11 Windows

    Default Re: connect, disconnect and reconnect problem

    Actually, I changed the program such that the detector object is created
    and managed by the main thread.
    Thanks anyway for the suggestion, I do realize that I still have to learn a lot
    on the details of Qt

    Thanks for your efforts, appreciated

    best jan

Similar Threads

  1. QProcess disconnect trouble
    By wally in forum Qt Programming
    Replies: 20
    Last Post: 6th April 2010, 17:19
  2. how to reconnect CORRECTLY qmysql database?
    By yaseminyilmaz in forum Newbie
    Replies: 7
    Last Post: 12th January 2010, 13:09
  3. how to reconnect CORRECTLY qmysql database?
    By yaseminyilmaz in forum Qt Programming
    Replies: 0
    Last Post: 31st December 2009, 12:20
  4. Reconnect problem
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2006, 19:51
  5. qsqldatabase does not sense db disconnect
    By rburge in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2006, 18:59

Tags for this Thread

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.