Provide three menu options to format the text entered in QTextEdit to (1) display the letters in capital letters (2) display the text in red (3) align the text in the center
I did the 2nd and the 3rd part but I can't find the capital letter part
if (name == "Color") {
textEdit->setTextColor("red");
}
if (name == "Capital") {
textEdit->??????;
}
if (name == "Center") {
textEdit->setAlignment(Qt::AlignHCenter);
}
can u give me some guidance please?