Changing data with PlainTextEdit
Solved
General and Desktop
-
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.
-
@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