Durkin
23rd July 2013, 13:11
Hello,
I 'm looking to create a QPlainTextEdit with multiple tabs, like notepad++ or gedit. It would seem that using multiple QPlainTextEdits with a QTabbedWidget is an easy way to accomplish this. However, I 'm wondering how 'heavy' QPlainTextEdit is? Do I really need to have multiple of those, when I basically just need multiple documents?
I looked to QPlainTextEdit::setDocument though and it suggets that setting another doc would delete the current (if it's not owned by something else). I 'm assuming I would need something to contain and own the documents then.
Which of the two approaches makes the most sense?
Also, I was playing around with the syntax highlighter, while most features work fine on QTextcharFormat
setFontCapitalization(QFont::AllUppercase)
does nothing. Any clues what I 'm missing? Thanks.
I 'm looking to create a QPlainTextEdit with multiple tabs, like notepad++ or gedit. It would seem that using multiple QPlainTextEdits with a QTabbedWidget is an easy way to accomplish this. However, I 'm wondering how 'heavy' QPlainTextEdit is? Do I really need to have multiple of those, when I basically just need multiple documents?
I looked to QPlainTextEdit::setDocument though and it suggets that setting another doc would delete the current (if it's not owned by something else). I 'm assuming I would need something to contain and own the documents then.
Which of the two approaches makes the most sense?
Also, I was playing around with the syntax highlighter, while most features work fine on QTextcharFormat
setFontCapitalization(QFont::AllUppercase)
does nothing. Any clues what I 'm missing? Thanks.