Results 1 to 9 of 9

Thread: program not getting compiled...please help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    i checked them both have t1.exe file each

  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: program not getting compiled...please help

    So what's the problem?
    J-P Nurmi

  3. #3
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    the problem is that there is no change in the output .In the code shown below:
    Qt Code:
    1. #include <QApplication>
    2. //! [1] //! [2]
    3. #include <QPushButton>
    4. //! [2]
    5.  
    6. //! [3]
    7. int main(int argc, char *argv[])
    8. {
    9. //! [3] //! [4]
    10. QApplication app(argc, argv);
    11. //! [4]
    12.  
    13. //! [5]
    14. QPushButton hello("Hello qt");
    15. //! [5]
    16.  
    17. //! [6]
    18. hello.show();
    19. //! [6] //! [7]
    20. return app.exec();
    21. }
    To copy to clipboard, switch view to plain text mode 
    I made following change:
    Qt Code:
    1. //! [5]
    2. QPushButton hello("Hello world");
    3. //! [5]
    To copy to clipboard, switch view to plain text mode 
    but in the output it is showing Hello qt as before even after saving & compiling
    Last edited by jpn; 27th December 2008 at 07:51. Reason: missing [code] tags

  4. #4
    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: program not getting compiled...please help

    Make sure to edit the correct file in the appropriate folder...
    J-P Nurmi

  5. #5
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    the code of tutorial t1 which has main.cpp,release,debug,tmp & 4 make files.I made changes in main.cpp
    Attached Files Attached Files

Similar Threads

  1. Replies: 19
    Last Post: 21st January 2008, 09:13
  2. Replies: 5
    Last Post: 29th October 2007, 22:49
  3. Version setting in QT Program
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 24th October 2007, 12:07
  4. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.