Unsolved problem using qlineedit in qbytearray?
-
I have a qbytearray like this:
QByteArray example;
And i want in my qbyte array put the text of my qlineedit
i tried with:example = ui->lineedit->toLatin1().
but didnt work. some idea how to do it?
-
Hi,
ui->lineedit->text().toLatin1()
-
Hi,
@SGaist provided the answer,
Qt documentation has been helpfull, QLineEdit has method text() which gets the corresponding text from LineEdit,Link for the answer
http://doc.qt.io/qt-5/qlineedit.html#text-propThanks,