QT bold and underlined text?

i can manage to make the text in my text box italic, but for some reason i cand figure out how to make it bold or underlined (without using html codes that is)

the code i used for italic was:

ui->textEdit->setFontItalic(true);

can anyone tell me how to make it bold or underlined?
thanks
Topic archived. No new replies allowed.