Qt 6.11 is out! See what's new in the release
blog
How to set QPlainTextEdit 's text to mapper->currentIndex?
-
I want to convert mapper->currentIndex() to string, in order to put it in a QPlainTextEdit.
I tried:int i = mapper->currentIndex(); ui.currentIndex_txt->setPlainText(i.toString());Also:
QString *i = QString(mapper->currentIndex());But both fail.
How should I do it? -
@Panoss Check QString::number