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. Timers
Forum Updated to NodeBB v4.3 + New Features

Timers

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    shirisha
    wrote on last edited by
    #1

    hi sir..

    Am unable to speed up the data reading by using timers ..i jst created timers and timer.start(1); i gve but i need to get much more faster than that ..Please help me ..

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please explain what do you mean. What data are you reading? From where? Which OS? Which Qt version?

      (Z(:^

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Francknos
        wrote on last edited by
        #3

        timer.start(1) launch something after 1ms but why reading data would be read faster ?...

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I'm sorry, I still don't understand your problem, so I can't answer/ help. What data are you reading? Where from (network, serial port, file system)?

          (Z(:^

          1 Reply Last reply
          0
          • S Offline
            S Offline
            shirisha
            wrote on last edited by
            #5

            from serial port i need to read the data ..

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shirisha
              wrote on last edited by
              #6

              qt 4.8.4 vertion

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Some people do report it takes time to open the port, so it is better to wait a bit. I have not encountered that problem myself.

                For reading, you should use the readyRead() signal from QSerialPort, connect it to your custom slot, and do the reading there. It should work well, at leas tit has in my applications.

                (Z(:^

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shirisha
                  wrote on last edited by
                  #8

                  ha i tried with readRead but also same problem time is not fast ..please help me

                  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