Results 1 to 5 of 5

Thread: Showing Output from external QThread on Local QTextEdit object (Qt 4, SuSe Linux 10)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Showing Output from external QThread on Local QTextEdit object (Qt 4, SuSe Linux

    Thanks for the help guys. This really gives me an idea and how to get this done. I'll post how it went.

    Thanks again

  2. #2
    Join Date
    Feb 2006
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Showing Output from external QThread on Local QTextEdit object (Qt 4, SuSe Linux

    I was able to make this work by connecting the signal inside my thread to the textEdit box.

    eg:

    GUI APP:

    thread = new mythread();

    connect(thread, SIGNAL(mysignal(QString)), textEdit, SLOT(append(QString)), Qt::QueuedConnection);

    THREAD:

    mythread::send(QString str)
    {
    emit mysignal(str);
    }

    thanks for the help.
    Last edited by freak; 10th May 2006 at 22:49.

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.