Results 1 to 5 of 5

Thread: How to use C++ includes?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to use C++ includes?

    Flush the output buffer:

    Qt Code:
    1. #include <iostream>
    2.  
    3. void Form1::fileOpen(){
    4. std::cout << "my output" << std::endl;
    5. }
    To copy to clipboard, switch view to plain text mode 

    And remember that you have to run the application from a terminal.

    BTW. It might be easier to use qDebug() instead of those cout statements.

  2. #2
    Join Date
    Jan 2006
    Posts
    15
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: How to use C++ includes?

    That works perfectly! Thanks as well for the hint with qdebug. Will have a look into this as well.

    Regards,
    Jochen

Similar Threads

  1. QImageWriter supportedImageFormats only sometimes includes JPEG. Why?
    By philw in forum Installation and Deployment
    Replies: 2
    Last Post: 17th December 2008, 23:49
  2. Pro->Makefile: how to make includes
    By Sergei82 in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2008, 07:28
  3. Doubt about includes
    By xEsk in forum Newbie
    Replies: 2
    Last Post: 15th November 2007, 20:20
  4. qmake default includes
    By Gopala Krishna in forum Installation and Deployment
    Replies: 5
    Last Post: 17th July 2007, 20:47
  5. Replies: 6
    Last Post: 5th July 2007, 02:00

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
  •  
Qt is a trademark of The Qt Company.