Thanks for your response. It works now. I was using wrong DLLs

Regards,
Sudhir

From: Hamish Moffatt [mailto:ham...@risingsoftware.com]
Sent: Tuesday, October 10, 2017 12:08 PM
To: Sudhir Sharma <sudhir.sha...@mindtree.com>
Cc: interest@qt-project.org
Subject: Re: [Interest] Print() not working in 5.9.2


* You are receiving this mail from an external source *
On 10/10/17 15:25, Sudhir Sharma wrote:
Hi,

These seems to be some issue with Print(). It does not seem to work on 5.9.2. 
In fact not seen it working in any version of QT 5. Windows 64 bit.

QTextDocument *document = new QTextDocument();
QPrinter printer;
QPrintDialog *dialog = new QPrintDialog(&printer, this);

Print Dialog not show up.
Return code of dialog->exec() does match QDialog::Accepted

Do you have printsupport enabled (QT += printsupport in qmake)? Do you have the 
plugin deployed? (windowsprintersupport.dll in plugins\printsupport)?


Hamish

________________________________

http://www.mindtree.com/email/disclaimer.html
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to