Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Qt and Posix timers
Qt 6.11 is out! See what's new in the release blog

Qt and Posix timers

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    AlbertoXerez
    wrote on last edited by
    #1

    Hi everyone, it is the first time I write here and I hope you can help me.

    I am developing a program, A, in which I read from a device (server, B) via UDP (using QUdpSocket) make some calculations and send via UDP the results to another Qt program, C, to show them in a little GUI. I have been using Qtimers, and it worked fine but as I need more accuracy I have had to change these timers for posix timers. Now, when I start to send the data from A to C, the GUI in A gets frozen.

    If I change the writeDatagram in program A for an: cout << "whatever"; the GUI does not get frozen.

    Does anybody know why this happen, is it a problem with the signals? could be a problem for having changed the methods to static? I had to do this because posix timers call static methods.

    thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cmazieri
      wrote on last edited by
      #2

      Try to post some piece of code to make your question more clear.

      There is no problems with signals and QTimers are good.

      See if you have some loop that could make the UI get frozen.

      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