【Linux】ザウルス開発系スレッド-5【SL】at LINUX
【Linux】ザウルス開発系スレッド-5【SL】 - 暇つぶし2ch4:login:Penguin
04/11/26 19:05:07 MJeuSIpZ
早速。QTで2バイト文字を表示できないんだけど、どこをどう
変えれば良いのか教えてくれまいか

#include <qapplication.h>
#include <qpushbutton.h>
#include <qfont.h>
class MyWidget : public QWidget
{
public:
MyWidget( QWidget *parent=0,const char *name=0 );
};
MyWidget::MyWidget( QWidget *parent , const char *name )
: QWidget( parent , name )
{
setMinimumSize( 200, 120 );
setMaximumSize( 200, 120 );
QPushButton *quit = new QPushButton( QString::fromLocal8Bit("終了") , this , "quit" );
quit->setGeometry( 62, 40, 75, 30 );
// quit->setFont( QFont( "System" , 18 , QFont::Bold ));
connect( quit,SIGNAL(clicked()),qApp,SLOT(quit()) );
}
int main( int argn, char *argv[] )
{
QApplication a( argn, argv );
MyWidget w;
w.setGeometry( 100, 100, 200, 120 );
a.setMainWidget( &w );
w.show();
return a.exec();
}



次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch