Results 1 to 3 of 3

Thread: print something on console application

  1. #1
    Join Date
    Jun 2010
    Location
    istanbul
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default print something on console application

    How can i write to the screen when i am working with console application?

    I want to write the address of some variable which is in memory.

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: print something on console application

    Qt Code:
    1. #include <iostream>
    2.  
    3. ...
    4. int someVariable;
    5. std::cout << "address of some variable: " << &someVariable;
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Mar 2009
    Location
    Tennessee, US
    Posts
    41
    Thanks
    3
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: print something on console application

    Also check out QDebug

Similar Threads

  1. about console application
    By jirach_gag in forum Qt Programming
    Replies: 2
    Last Post: 5th January 2012, 12:39
  2. Writing a Qt console application
    By sashoalm in forum Newbie
    Replies: 6
    Last Post: 7th February 2011, 18:42
  3. Debugging a console application
    By Lorthirk in forum Qt Tools
    Replies: 1
    Last Post: 26th September 2009, 12:49
  4. Print with iostream to console
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 17th March 2009, 18:03
  5. how to print a matrix to a console in GUI program
    By elflord in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2009, 13:16

Tags for this Thread

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.