carre
9th November 2016, 18:32
Hi,
if i select in the print dialog the "MS XPS Document Writer" for printing (WIN 7), a file dialog will be opened. If this dialog will be canceled (by user) -> segementation fault (in line 4) - qt bug - or can i check something more? When a file name will be entered -> no problem.
QPrinter printer;
QPrintDialog *dlg = new QPrintDialog(&printer, this);
if (dlg->exec() == QDialog::Accepted) {
ui->q_text_edit->print(&printer);
}
delete dlg;
Thanks.
if i select in the print dialog the "MS XPS Document Writer" for printing (WIN 7), a file dialog will be opened. If this dialog will be canceled (by user) -> segementation fault (in line 4) - qt bug - or can i check something more? When a file name will be entered -> no problem.
QPrinter printer;
QPrintDialog *dlg = new QPrintDialog(&printer, this);
if (dlg->exec() == QDialog::Accepted) {
ui->q_text_edit->print(&printer);
}
delete dlg;
Thanks.