[Qt-interest] Qt 4.6.1 QPrintPreviewDialog not working in Windows XP
Francisco Ares
frares at gmail.com
Mon Jan 25 10:12:40 CET 2010
void QTextEdit::print (
QPrinter<http://127.0.0.1:44874/help/topic/com.trolltech.help_4.5.3/doc/qprinter.html>*
*printer* ) constit is not a slot
Francisco
On Sun, Jan 24, 2010 at 12:02 AM, Joshua Grauman <jnfo-c at grauman.com> wrote:
> FYI,
>
> This is a bug in Qt. Everything worked when I commented out the line:
> printer.setPaperSize(QPrinter::Letter);
>
> Josh
>
> > Hello,
> >
> > I just got my app to compile on Windows. Everything looks like it's more
> > or less working except the QPrintPreviewDialog isn't working. This code
> > works fine under Linux, but the preview is empty/blank under Windows XP.
> > I'm using Qt 4.6.1 under both Linux and XP. Any thoughts???
> >
> > Josh
> >
> > void myClass::printPreview(void)
> > {
> > QPrinter printer(QPrinter::HighResolution);
> > printer.setPaperSize(QPrinter::Letter);
> > printer.setPageMargins(0.5,0.5,0.5,0.5,QPrinter::Inch);
> >
> > QPrintPreviewDialog preview(&printer, this, Qt::Window);
> > connect(&preview, SIGNAL(paintRequested(QPrinter *)), this,
> SLOT(print(QPrinter *)));
> > preview.exec();
> > }
> >
> > void myClass::print(QPrinter *printer)
> > {
> > textEdit1->print(printer); //this is a QTextEdit...
> > }
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have one
idea and we exchange these ideas, then each of us will have two ideas." -
George Bernard Shaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100125/495a0816/attachment.html
More information about the Qt-interest-old
mailing list