+ 2

For people that using QT

i simply trying to get my wrote text in a QTextEdit to an other place. I did like 'Qstring Var = QTextEdit *iable->toPlainTexe();' but 'Var' didn't gave me nothing ... I tried toHtml to and there it worked but, it was HTML tag for sure ^^ ! Can someone tell me why this happen ?

9th Dec 2017, 6:17 PM
EL fefe
EL fefe - avatar
4 Antworten
+ 1
if you define a new QTextEdit it will be empty (QTextEdit *iable)
11th Dec 2017, 9:36 PM
Eric
+ 1
i write something in after call it, should it work ?
11th Dec 2017, 9:38 PM
EL fefe
EL fefe - avatar
+ 1
'kay i try and reply !
11th Dec 2017, 10:02 PM
EL fefe
EL fefe - avatar
0
Try something like that: Qstring Var = iable->toPlainTexe();
11th Dec 2017, 9:53 PM
Eric