Results 1 to 2 of 2

Thread: QPrintDialog problem

  1. #1
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question QPrintDialog problem

    I have this problem in QPrintDialog. The exec() function isn't working.

    Qt Code:
    1. void EditorWin::doPrint() {
    2. #ifndef QT_NO_PRINTER
    3. QPrinter *printer = new QPrinter(QPrinter::HighResolution);
    4. printer->setFullPage(true);
    5. QPrintDialog *printDialog = new QPrintDialog(printer, this);
    6. printDialog->exec();
    7. if (printDialog->exec() == QDialog::Accepted) {
    8. curTab()->document()->print(printer);
    9. }
    10. #endif
    11. }
    To copy to clipboard, switch view to plain text mode 

    I know that it gets into the function because to test, I put in a qApp->aboutQt() and it did pop up. It is behaving as "QDialog::Rejected".
    I would really appreciate the help if someone could offer it.

    QT 4.1.0
    Win32

  2. #2
    Join Date
    Jan 2006
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPrintDialog problem

    hmm, i think that this was a problem on the other computer i was using. never mind! sorry!

Similar Threads

  1. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  4. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 20:17
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.