Results 1 to 2 of 2

Thread: How to pass the value of a QLineEdit to a thread'd thread.

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

    Default How to pass the value of a QLineEdit to a thread'd thread.

    I have a gui app that starts a thread. This thread is running a QTcpServer which on each new connection creates a new connection handler class.

    How do you pass the value entered in the QLineEdit of the GUI app to the handler class?

    Thanks in advanced.

  2. #2
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to pass the value of a QLineEdit to a thread'd thread.

    Hi what about adding to the thread a function like:
    Qt Code:
    1. void addParameter(parameter)
    To copy to clipboard, switch view to plain text mode 
    that uses a mutex to protect thread's data?

Similar Threads

  1. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:44
  2. Replies: 2
    Last Post: 6th January 2006, 22:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.