Unsolved read character QLineEdit
-
whats the command/syntax to read string/character from QLineEdit?
for example i type 5,6 i need get 5, then comma , then 6 and use it as 2 different input for other code
-
@s002wjh
http://doc.qt.io/qt-5/qlineedit.html#text-prop,QLineEdit::text()
. Did you try the docs? -
Hi
adding to jonB
the text() returns a QString and you can access each char with the
at() function
http://doc.qt.io/qt-5/qstring.html#atMake sure you check string length before using this functions as
it will crash the app if you do not handle it with care.