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. Changing data with PlainTextEdit
Qt 6.11 is out! See what's new in the release blog

Changing data with PlainTextEdit

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 377 Views
  • 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
    aliemrenebiler
    wrote on last edited by
    #1

    We would like to send a data to a PlainTextEdit and change it with 3 second delays.

    The data can be both integer or string. It will be stored in mainwindow.cpp

    How can I do it? An example would be great.

    jsulmJ 1 Reply Last reply
    0
    • A aliemrenebiler

      We would like to send a data to a PlainTextEdit and change it with 3 second delays.

      The data can be both integer or string. It will be stored in mainwindow.cpp

      How can I do it? An example would be great.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @aliemrenebiler Use a QTimer with 3 seconds timeout and on each timeout update the text.
      https://doc.qt.io/qt-5/qtimer.html
      https://doc.qt.io/qt-5/qplaintextedit.html#setPlainText
      https://doc.qt.io/qt-5/qstring.html#number-1

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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