Answer the question
In order to leave comments, you need to log in
How to make a frame around text in Qt in Qt?
Hello! Tried to make a frame around text in QLabel. Did it like this:
QString text = "bla-bla-bla";
QString addText="<p style='border: 1px solid red; padding: 5px;'>"+text+"</p>";
ui->label->setText(addText);
QString style = "border: 1px solid red; padding: 5px;";
ui->label->setStyleSheet(style);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question