Results 1 to 4 of 4

Thread: Printing to Command Line

  1. #1
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Printing to Command Line

    Does anybody know how to print to the command line from within QT?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Printing to Command Line

    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    seanmu13 (5th July 2007)

  4. #3
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Printing to Command Line

    try to use qDebug(.....) function.
    It works as cout for QString and printf() for other data-types.

  5. The following user says thank you to a_m_mukul for this useful post:

    seanmu13 (5th July 2007)

  6. #4
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Printing to Command Line

    Thanks for help, I got it working.

Similar Threads

  1. Printing a Qstring
    By harakiri in forum Newbie
    Replies: 6
    Last Post: 24th June 2007, 12:52
  2. Printing problemQt3.3.5
    By vermarajeev in forum Qt Programming
    Replies: 10
    Last Post: 7th February 2007, 19:22
  3. Re: Printing in Qt
    By Jimmy2775 in forum Newbie
    Replies: 3
    Last Post: 12th July 2006, 23:00
  4. Replies: 0
    Last Post: 28th June 2006, 20:49
  5. Qt Printing on .ps
    By vratojr in forum Qt Programming
    Replies: 3
    Last Post: 18th February 2006, 23:22

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.