//打印出图
void OsgMainWindow::printSlot()
{
QPrintDialog* printDialog = new QPrintDialog;
printDialog->move(300,300,600,600);
printDialog->show();
}
------解决思路----------------------
我写的味代码,正确的要怎么写呢?
//打印出图
void OsgMainWindow::printSlot()
{
QPrintDialog* printDialog = new QPrintDialog;
printDialog->move(300,300,600,600);
printDialog->show();
}