I am working on an a word processing app, the Italic function seems to work fine, but it has a couple of bugs that I cannot seem to understand why. I tried using different kinds of loops like the while loop, the do while loop and the for loop but the issue seems to persist
here is my code `
void MainWindow::on_actionItalic_toggled(bool arg1)
{
ui->textEdit->setFontItalic(arg1);
}
the issue also seems to appear in my bold function
void MainWindow::on_actionBold_toggled(bool arg1)
{
ui->textEdit->setFontWeight(QFont::Bold);
}
I apologize if my Questions seems stupid, I am still a beginner and I am still learning C++ and QT