Results 1 to 20 of 276

Thread: Hello Qt Centre

Hybrid View

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

    Default Re: Real QT Newbie says Hi!

    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4. int main(int argc, char **argv){
    5. QApplication app(argc, argv);
    6. pb.setText(QObject::tr("\"Hello fopetesl!\" - says the Qt world"));
    7. app.connect(&pb, SIGNAL(clicked()), &app, SLOT(quit()));
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 18th January 2007 at 20:36. Reason: Corrected obvious compile errors :)

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.