在Qt中QPrintDialog类,默认显示在屏幕的左上角,如何实现居中显示呢?跪求给位大神!
QDesktopWidget *pDesk = QApplication::desktop(); QPrintDialog w; //你的QPrintDialog类 w.move((pDesk->width() - w.width()) / 2, (pDesk->height() - w.height()) / 2);