Not sure but for a Japanese project my main.cpp looks like this.
int main( int argc, char* argv[] )
{
auction* my_auction = new auction();
my_auction->show();
return app.exec();
}
I seem to recall it not display the characters at all (even though they were simply hard-coded into the source) w/o those two lines... or at least one.
int main( int argc, char* argv[] )
{
QApplication app( argc, argv );
QTextCodec::setCodecForTr( QTextCodec::codecForName( "UTF-8" ) );
QTextCodec::setCodecForCStrings( QTextCodec::codecForName( "UTF-8" ) );
auction* my_auction = new auction();
my_auction->show();
return app.exec();
}
I seem to recall it not display the characters at all (even though they were simply hard-coded into the source) w/o those two lines... or at least one.
To copy to clipboard, switch view to plain text mode
Bookmarks