Results 1 to 3 of 3

Thread: problem - printing in windows and linux

  1. #1
    Join Date
    Jul 2008
    Posts
    25
    Thanks
    4
    Qt products
    Qt4

    Default problem - printing in windows and linux

    Why can't I use function print() in linux ? In windows I can and in linux I can't:
    my function:
    Qt Code:
    1. void MyWindow::Print()
    2. {
    3. QPrintDialog x (&printer,this);
    4. if (x.exec() == QDialog::Accepted)
    5. {
    6. textbox -> print (&printer);
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 

    mistake:
    Qt Code:
    1. error: ‘class QTextEdit’ has no member named ‘print’
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem - printing in windows and linux

    possibly you use too old a Qt version under Linux (esp. a different one)?
    This function was added in 4.3.
    Last edited by caduel; 8th July 2008 at 16:39. Reason: typo

  3. #3
    Join Date
    Jul 2008
    Posts
    25
    Thanks
    4
    Qt products
    Qt4

    Default Re: problem - printing in windows and linux

    thx You very much

Similar Threads

  1. Replies: 1
    Last Post: 25th December 2007, 10:35
  2. QTableView Performance Problem on Windows
    By umitoz in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2007, 16:47
  3. Font Problem Porting from Windows to Linux
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2007, 10:25
  4. Printing problem in windows
    By joseph in forum Qt Programming
    Replies: 6
    Last Post: 12th July 2007, 08:04
  5. problem of porting from windows to linux
    By jyoti kumar in forum Qt Programming
    Replies: 4
    Last Post: 22nd May 2006, 08:42

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.