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. There is a way to print strings to QPlaintextEdit in real time from events that arrive quickly below 500 microseconds
Forum Updated to NodeBB v4.3 + New Features

There is a way to print strings to QPlaintextEdit in real time from events that arrive quickly below 500 microseconds

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 196 Views 3 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.
  • D Offline
    D Offline
    Domenico
    wrote on last edited by
    #1

    There is a way to print strings to QPlaintextEdit in real time from events that arrive quickly below 500 microseconds?

    in my GUI so far it manages to print strings on QPlaintextEdit from events that arrive every 3 milliseconds.

    but it fails to print strings from events that arrive faster below 500 microseconds .. strings are lost to print on QPlaintextEdit in real time, in fact at each event the string is reset to print on QPlaintexEdit.

    is there a method to reduce overwrite times on QPlainTextEdit (with the "appendTextEdit" or "appentHtml" function) ??

    if it exists please help me how to reduce overwriting times? Thanks in advance

    M 1 Reply Last reply
    0
    • D Domenico

      There is a way to print strings to QPlaintextEdit in real time from events that arrive quickly below 500 microseconds?

      in my GUI so far it manages to print strings on QPlaintextEdit from events that arrive every 3 milliseconds.

      but it fails to print strings from events that arrive faster below 500 microseconds .. strings are lost to print on QPlaintextEdit in real time, in fact at each event the string is reset to print on QPlaintexEdit.

      is there a method to reduce overwrite times on QPlainTextEdit (with the "appendTextEdit" or "appentHtml" function) ??

      if it exists please help me how to reduce overwriting times? Thanks in advance

      M Offline
      M Offline
      mpergand
      wrote on last edited by
      #2

      @Domenico
      You need to store your data in a buffer (queue or circular buffer)

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

        Hi,

        You don't want to use such a widget with fast incoming data.

        Using the model view approach should yield better result. It will take less processing to show the latest data.

        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