PDA

View Full Version : QTextEdit... was ->text() too easy?



Raccoon29
16th March 2008, 16:42
Hi, in a newbie topic, a newbie question:
how to retrieve all the text contained in a QTextEdit in order to put it in a SQLite database?

Once upon a time there was a method called text() the returned a QString which was the text contained in the box... now I can't go on...

How to take all the QTextEdit data and put it in the proper database field? Maybe QTextEdit for a note field is not suitable? Should I use some else component? :confused:

wysota
16th March 2008, 16:52
See QTextEdit::plainText and QTextEdit::html.

Raccoon29
16th March 2008, 16:58
See QTextEdit::plainText and QTextEdit::html.
Great!
This is exactely what I was looking for!

...I read some many times that doc, but never noticed that method... ohhh my sleeping brain...
Thank you!