Important: Please read the Qt Code of Conduct -


  • Hi
    I have just started coding in QT, and I am unable to understand the concept on how to use threads. Can anyone provide me with a simple example where there is a text box whose value is getting updated in a time interval using thread. And another thread that can perform socket programming.
    Also if you can suggest me where I can find some study material with examples in QT.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Are you also new to coding ? If so, then don't start with threads, that's a pretty complex subject that you should take on later after getting the basics correctly.

    Also, for what you described there's no need for threads. Qt's asynchronous nature already provide what's needed.

    Start with Qt's documentation. It also contains the Threading Basics

    On a side note, it's Qt, QT stands for Apple QuickTime which you might also be interested in.