Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT on toradex VF61 SBC WINCE6.0
Forum Updated to NodeBB v4.3 + New Features

QT on toradex VF61 SBC WINCE6.0

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 2 Posters 2.8k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    What should that endless loop do ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      What should that endless loop do ?

      S Offline
      S Offline
      Shiv
      wrote on last edited by
      #3

      @SGaist Hi It will check for certain flags and call function according to it.For example It will read the adc in a thread for battery status and update the GUI icons based on it like that there are many real time activity it has to do.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Then implement that in a QThread subclass so your loop won't interfere with your GUI

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        0
        • SGaistS SGaist

          Then implement that in a QThread subclass so your loop won't interfere with your GUI

          S Offline
          S Offline
          Shiv
          wrote on last edited by
          #5

          @SGaist Thanks for your suggestion , do you have any examples .See all my widgets are in my mainwindow polling with the thread is not a problem but how i will communicate with my widgets .Since i am learning qt for just a while so don't mistake me if the question is silly.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            You can take a look at the Mandelbrot example

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              You can take a look at the Mandelbrot example

              S Offline
              S Offline
              Shiv
              wrote on last edited by
              #7

              @SGaist Thank you, the example is very much related to my requirement and i will try to implement it.In the Mandelbrot example the render thread has a run function but i am unable find where the thread is initiated.I have read the QThread class and checked some examples the QThread will initiate with the start function call which will initiate the override run function .Can you please explain , it will help me to proceed further.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                If you reimplement run, you do all the initialization at the start of the run method before your loop.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Shiv
                  wrote on last edited by
                  #9

                  I think you have misunderstood my question or may be i am wrong. I will rephrase my question.

                  • To execute a thread you should call the run function using start method,this is as per QThread class information.

                  • But in the Mandelbrot example I am unable to find that function call.
                    I want know how the thread is started where is the entry point to that thread.

                  Thank You.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    start is called in the render method

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Shiv
                      wrote on last edited by
                      #11

                      Thank you I got it ..

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        You're welcome !

                        In your case you can just start the thread as soon as you need it

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

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