Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 01:14, 11 October 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:HelloWorld em Qt

From Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

Qt Quick should be used for all UI development on mobile devices. The approach described in this article (based on QWidget) is deprecated.

O trecho de código a seguir demonstra como reproduzir o famoso 'Hello World!' em Qt.

Article Metadata

Testado com
Aparelho(s): N95-1

Compatibilidade
Plataforma(s): S60 3rd Edition, FP1, FP2
Symbian
S60 3rd Edition FP2
S60 3rd Edition FP1

Artigo
Palavras-chave: QLabel
Criado por cabezonxdg em 25 Aug 2009
Última alteração feita por hamishwillee em 11 Oct 2012

Código

#include <QLabel>
#include <QApplication>
 
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel* olaMundo = new QLabel("Ola mundo!");
olaMundo->show();
return app.exec();
}

Saída

OlaMundoQt.PNG

This page was last modified on 11 October 2012, at 01:14.
336 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×