Solved 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
-
@Panoss Check QString::number
-
Thanks it works!