Results 1 to 1 of 1

Thread: QueuedConnection pointer problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question QueuedConnection pointer problem

    Hi everybody, i have a class that look like this.
    struct toSignal{

    private:
    QString str;
    QString aa;
    toSignal *next;
    public:
    // accesfunction to the member.
    QString toString()
    {
    QString ret=""
    ret=str;
    ret+=aa;
    if(next)
    {
    ret+=next.toString();
    }
    return ret;

    }
    };
    i have a working thread that modifiied the data in the structure, and trigger a signal that is connected to the gui thread using QueuedConnection, but after i trigger the signal i modified the data and trigger a new signal. but for the gui is displaying twice the same information. but if trigger a signal with the string created out of the toString() function the info is correct, or if i use BlockingQueuedConnection.
    Last edited by cafu; 2nd March 2010 at 13:32.
    CAFU......

Similar Threads

  1. Replies: 1
    Last Post: 6th November 2009, 18:33
  2. Replies: 8
    Last Post: 1st June 2009, 19:59
  3. Qt::QueuedConnection and passing by Reference
    By soul_rebel in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2007, 18:47
  4. How to use Qt::QueuedConnection?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2007, 08:04
  5. problem with pointer-reference
    By mickey in forum General Programming
    Replies: 10
    Last Post: 24th February 2007, 21:59

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.