I am designing a notepad application and I want to change the case of the text in QTextEdit to uppercase.
I triedCode:
if (name == "Uppercase") { textEdit->setFont(Qt::Alluppercase); }
but it doesn't work. Which property can I use?
Printable View
I am designing a notepad application and I want to change the case of the text in QTextEdit to uppercase.
I triedCode:
if (name == "Uppercase") { textEdit->setFont(Qt::Alluppercase); }
but it doesn't work. Which property can I use?
You can use "setInputMethod" method of QTextEdit and assign it "Qt::ImhPreferUppercase"
AND IT IS SOLVED.
CHEERS
setInputMethod does not exist. I tried setInputMethodHints but no result