示例#1
0
文件: t1.cs 项目: KDE/qyoto
 public static int Main(String[] args)
 {
     QApplication app = new QApplication(args);
     QPushButton hello = new QPushButton("Hello world!");
     QLabel label = new QLabel(hello);
     hello.Resize(100, 30);
     hello.Show();
     return QApplication.Exec();
 }
示例#2
0
文件: p1.cs 项目: KDE/kimono
    public static int Main(String[] args)
    {
        QApplication a = new QApplication(args);
        QMainWindow w = new QMainWindow();
        QPushButton hello = new QPushButton("Hello world!", null);
        hello.Resize(100, 30);
        QObject.Connect(hello, SIGNAL("clicked()"), a, SLOT("quit()"));

        hello.Show();
        return QApplication.Exec();
    }
示例#3
0
文件: p2.cs 项目: KDE/kimono
    public static int Main(String[] args)
    {
        KAboutData about = new KAboutData("p2", "Hello World", KDE.Ki18n(""), "0.1");
        KCmdLineArgs.Init(args, about);
        KApplication a = new KApplication();
        QPushButton hello = new QPushButton(KDE.I18n("Hello World !"), null);

        a.SetTopWidget(hello);
        hello.Show();

        return KApplication.Exec();
    }
示例#4
0
文件: t2.cs 项目: KDE/qyoto
    public static int Main(String[] args)
    {
        QApplication app = new QApplication(args);

        QPushButton quit = new QPushButton( "Quit" );
        quit.Resize( 75, 30 );
        quit.Font = new QFont( "Times", 18, (int) QFont.Weight.Bold );

        QObject.Connect( quit, SIGNAL("clicked()"), app, SLOT("quit()") );

        quit.Show();
        return QApplication.Exec();
    }