You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
568 B
C++
26 lines
568 B
C++
/****************************************************************
|
|
**
|
|
** Translation tutorial 1
|
|
**
|
|
****************************************************************/
|
|
|
|
#include <qapplication.h>
|
|
#include <qpushbutton.h>
|
|
#include <qtranslator.h>
|
|
|
|
|
|
int main( int argc, char **argv )
|
|
{
|
|
QApplication app( argc, argv );
|
|
|
|
QTranslator translator( 0 );
|
|
translator.load( "tt1_la", "." );
|
|
app.installTranslator( &translator );
|
|
|
|
QPushButton hello( QPushButton::tr("Hello world!"), 0 );
|
|
|
|
app.setMainWidget( &hello );
|
|
hello.show();
|
|
return app.exec();
|
|
}
|