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 2007
    Location
    North Yorkshire Dales
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Thumbs up Real QT Newbie says Hi!

    Yup - Hi to all
    Am looking forward to some interesting discussions. QT(4) is absolutely new to me. I have written in C (& Assembler) for years and am only now breaking into C++ which is supposed to be a super C. Hah! It's a new language yet.
    And then there's QT Designer to get my head around. OK. OK. I'll get there just crying on shoulders is all.

    And saying hello. cputs << "Hello!";


    There are three kinds of lies: Lies, damned lies, and benchmarks.
    Live today like it's the last day of your life. One day it will be.
    Ubuntu 6.10; Mandriva 2007; X64 3800+ AMD; 2GB; "250GB SATA

  2. #2
    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.