Qt-interest Archive, May 2008
Formatting text in QTextEdit.
Message 1 in thread
Hi,
Can anyone explain me what's the proper way to format text in a QTextEdit
window ??? For e.g. in the following class I'm able to turn characters
bold, but after I use backspace to erase all characters, characters start
to appear in simple way without bold look.
class RichTextWidget:public QWidget{
Q_OBJECT
QTextEdit* textEdit;
public:
RichTextWidget(QWidget* parent=0){
........
textEdit = new QTextEdit();
textEdit->setFontWeight(QFont::Bold);
........
}
};
--
[ signature omitted ]