You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/tools/linguist/tutorial/tt1/main.cpp

26 lines
578 B

/****************************************************************
**
** Translation tutorial 1
**
****************************************************************/
#include <ntqapplication.h>
#include <ntqpushbutton.h>
#include <ntqtranslator.h>
int main( int argc, char **argv )
{
TQApplication app( argc, argv );
TQTranslator translator( 0 );
translator.load( "tt1_la", "." );
app.installTranslator( &translator );
TQPushButton hello( TQPushButton::tr("Hello world!"), 0 );
app.setMainWidget( &hello );
hello.show();
return app.exec();
}