I Want to have a bigger QMessageBox and centered texts in it but when I increase the size of it by stylsheet it'll be like this:
if I could give it Some Padding or margin it would be fixed but I can't.
void MainWindow::showMsg()
{
QMessageBox m_MsgBox;
m_MsgBox.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
m_MsgBox.setIcon(QMessageBox::Warning);
m_MsgBox.setText("Your Trial is finished! Please purachase a plan.");
m_MsgBox.setStandardButtons(QMessageBox::Ok);
m_MsgBox.setStyleSheet("QLabel{min-width:200 px; font-size: 13px;} QPushButton{ width:25px; font-size: 13px; }");
if(m_MsgBox.exec() == QMessageBox::Ok)
m_MsgBox.close();
}
I want to give different css properties to each QLabel(QMessageBox::Warning & setText) in this QMessageBox.