我用下面的代码测试:
QProgressDialog* dialog = new QProgressDialog("Message", "Close", 0, 10);
dialog->setWindowTitle("Long Long Long Long Title");
dialog->setCancelButtonText("Long Long Long Click this button to cancel");
dialog->setWindowModality(Qt::ApplicationModal);
dialog->adjustSize();
dialog->setValue(5);
标题和取消按钮文本被剪切。我调用了adjustSize(),但是没有用。如何调整对话框的大小以适应其内容?