Qt如何让弹出的窗口居中显示

    xiaoxiao2021-03-25  117

    QTextEdit* textEdit = new QTextEdit(NULL); textEdit->setAttribute(Qt::WA_DeleteOnClose); textEdit->adjustSize(); textEdit->move(this->geometry().center() - textEdit->rect().center()); textEdit->show();

     

    转载请注明原文地址: https://ju.6miu.com/read-18769.html

    最新回复(0)