コード例 #1
0
/* --- MAIN -----------------------*/
int main(int argc, char **argv)
{
    KApplication *testapp;
    KRulerTest *window;

    testapp = new KApplication(argc, argv, "krulertest");
    testapp->setFont(QFont("Helvetica", 12), true);

    window = new KRulerTest("main");
    testapp->setMainWidget(window);
    window->setCaption("KRulerTest");
    window->show();
    return testapp->exec();
}