Registered Member
|
Hi all!
I wonder how I could get the contents from a TextEdit widget without the html formatting. For QTextEdit there is a method, but not for TextEdit. I need this because when I type something in the TextEdit field and I save and load it, it is saved as background black in the html formatting. While I didn't set any background color. Anyone knows how to fix this? |
Administrator
|
Please see http://api.kde.org/4.x-api/kdelibs-apid ... 6472cf367a
KTextEdit is a subclass of QTextEdit.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I have to say I do not have alot of experience in C++/Qt.
So should I use the object, call nativeWidget() and for that use acceptRichText, or autoFormatting? Thanks! |
Administrator
|
The following code will disable the ability to set rich text.
This assumes your Plasma::TextEdit is called textEdit. Simply change textEdit as needed.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Seems I guessed correct then. That last part about the renaming I knew Thanks alot! |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]