Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MultiThreading in QT
Forum Updated to NodeBB v4.3 + New Features

MultiThreading in QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 2.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SHUBHAM SINGH RAO
    wrote on last edited by
    #1

    How to use two threads to run 2 independent counters and displaying them in GUI?
    i have run one counter in GUI but unable to execute 2nd one!

    raven-worxR A 2 Replies Last reply
    0
    • S SHUBHAM SINGH RAO

      How to use two threads to run 2 independent counters and displaying them in GUI?
      i have run one counter in GUI but unable to execute 2nd one!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @SHUBHAM-SINGH-RAO
      did you already read the threading docs as a starting point?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      S 1 Reply Last reply
      4
      • S SHUBHAM SINGH RAO

        How to use two threads to run 2 independent counters and displaying them in GUI?
        i have run one counter in GUI but unable to execute 2nd one!

        A Offline
        A Offline
        ambershark
        wrote on last edited by ambershark
        #3

        @SHUBHAM-SINGH-RAO I just did a threading example for someone else and coincidentally used timers. I'll grab the link and post it here ...

        Here ya go:

        https://forum.qt.io/topic/88317/custom-type-sending-classes-for-communication-between-threads/7

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        S 1 Reply Last reply
        5
        • A ambershark

          @SHUBHAM-SINGH-RAO I just did a threading example for someone else and coincidentally used timers. I'll grab the link and post it here ...

          Here ya go:

          https://forum.qt.io/topic/88317/custom-type-sending-classes-for-communication-between-threads/7

          S Offline
          S Offline
          SHUBHAM SINGH RAO
          wrote on last edited by
          #4

          @ambershark Thanx for ur help...but I m working on a GUI based application not on Console Application. My aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need Multi Threading .
          kindly help me out.

          A aha_1980A 2 Replies Last reply
          0
          • S SHUBHAM SINGH RAO

            @ambershark Thanx for ur help...but I m working on a GUI based application not on Console Application. My aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need Multi Threading .
            kindly help me out.

            A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            @SHUBHAM-SINGH-RAO Assuming you didn't even look at my example then. It's all GUI, lol. It's down about post #7 or so in that thread. Check again.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            1
            • raven-worxR raven-worx

              @SHUBHAM-SINGH-RAO
              did you already read the threading docs as a starting point?

              S Offline
              S Offline
              SHUBHAM SINGH RAO
              wrote on last edited by
              #6

              @raven-worx Yeah, I have gone through this document few days back, but still I m facing problems regarding applying these concepts in code, since I don't have good hands on this topic.
              I m working on a GUI based application where my aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need to implement Multi Threading concept.
              kindly help me out.

              raven-worxR VRoninV 2 Replies Last reply
              0
              • S SHUBHAM SINGH RAO

                @raven-worx Yeah, I have gone through this document few days back, but still I m facing problems regarding applying these concepts in code, since I don't have good hands on this topic.
                I m working on a GUI based application where my aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need to implement Multi Threading concept.
                kindly help me out.

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @SHUBHAM-SINGH-RAO
                since you have an actual example by @ambershark i think your are after a tailored solution rather than help

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                1
                • S SHUBHAM SINGH RAO

                  @ambershark Thanx for ur help...but I m working on a GUI based application not on Console Application. My aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need Multi Threading .
                  kindly help me out.

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @SHUBHAM-SINGH-RAO said in MultiThreading in QT:

                  @ambershark Thanx for ur help...but I m working on a GUI based application not on Console Application. My aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need Multi Threading .

                  You mean something like a chat program? I doubt you will need multithreading for that, but if you think... The rest of the world uses SIGNALS and SLOTS and let Qt do the heavy work in background.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • S SHUBHAM SINGH RAO

                    @raven-worx Yeah, I have gone through this document few days back, but still I m facing problems regarding applying these concepts in code, since I don't have good hands on this topic.
                    I m working on a GUI based application where my aim is to run GUI without hanging, simultaneously uploading the data being entered by user on server. For that I need to implement Multi Threading concept.
                    kindly help me out.

                    VRoninV Offline
                    VRoninV Offline
                    VRonin
                    wrote on last edited by
                    #9

                    @SHUBHAM-SINGH-RAO said in MultiThreading in QT:

                    since I don't have good hands on this topic

                    Nice and short read to get you going: https://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/

                    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                    ~Napoleon Bonaparte

                    On a crusade to banish setIndexWidget() from the holy land of Qt

                    1 Reply Last reply
                    4

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved