Results 1 to 20 of 20

Thread: QThread and QQueue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: QThread and QQueue

    Quote Originally Posted by qball2k5
    There you go, do you want a striped down decoder too?
    Actually I was thinking about something that I could compile and test.

  2. #2
    Join Date
    Mar 2006
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6

    Default Re: QThread and QQueue

    See attached code, It's basically a one button interface (which is about 1/20 of the amount of data). Messager emits two possible messages that will cause 3 of the dots to flash. The messages are sent to the decoder and then the decoder updates the UI. The code pretty much speaks for itself.

    I don't see the problem.

    I connect the decoder object to the GUI, normally, with multiple signals to different slots? Could that be the problem, should the decoder be attached to the GUI via one signal instead of perhaps the 5-6 connections, I currently use.
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: QThread and QQueue

    Quote Originally Posted by qball2k5
    Messager emits two possible messages that will cause 3 of the dots to flash.
    Yes, they're flashing, but they're flashing all the time (even after I minimize and restore it). So the question is: how do I reproduce the bad behavior? Or maybe it just works on my system?

    Quote Originally Posted by qball2k5
    I connect the decoder object to the GUI, normally, with multiple signals to different slots? Could that be the problem, should the decoder be attached to the GUI via one signal instead of perhaps the 5-6 connections, I currently use.
    No, it shouldn't be a problem.

  4. #4
    Join Date
    Mar 2006
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6

    Default Re: QThread and QQueue

    I've talked to some people....mainly the people I work with....and they just won't minimize the application. Problem sort of fixed.

    I might switch it to a single connection between the decoder and UI and see if that works.

    This is a difficult problem to debug considering my app feeds off data from an external device.

    The code I gave you had one connection, it really has 6....and will have 8 once completed.
    I'm going to try and bring the 6 connection back, then simulate the messaging and see if the problem returns.

    I'll post that code when I can...thanks for all your on going help

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.