Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set QPlainTextEdit 's text to mapper->currentIndex?
Panoss last edited by Panoss
I want to convert mapper->currentIndex() to string, in order to put it in a QPlainTextEdit.
int i = mapper->currentIndex(); ui.currentIndex_txt->setPlainText(i.toString());
QString *i = QString(mapper->currentIndex());
But both fail.
How should I do it?
Panoss last edited by
Thanks it works!