本文整理汇总了C++中Main::show方法的典型用法代码示例。如果您正苦于以下问题:C++ Main::show方法的具体用法?C++ Main::show怎么用?C++ Main::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Main
的用法示例。
在下文中一共展示了Main::show方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: newView
void Main::newView()
{
// Open a new view... have it delete when closed.
Main *m = new Main(canvas, 0, 0, WDestructiveClose);
qApp->setMainWidget(m);
m->show();
qApp->setMainWidget(0);
}
示例2: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Main w;
w.show();
return a.exec();
}
示例3: main
int main (int argc, char *argv[])
{
QApplication app (argc, argv);
Main m;
m.show ();
app.exec ();
}
示例4: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Q_INIT_RESOURCE(js);
Main w;
w.show();
return a.exec();
}
示例5: main
int main(int argc, char* argv[]) {
printf("%s -started\n", __func__);
QApplication app(argc, argv);
Main m;
m.show();
return app.exec();
qDebug() << __func__ << "-done";
}
示例6: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("GNU Telephony");
QCoreApplication::setOrganizationDomain("gnutelephony.org");
QCoreApplication::setApplicationName("coastal-manpager");
Q_INIT_RESOURCE(manpager);
Coastal::bind(app, "manpager");
if(app.styleSheet().isEmpty())
Coastal::applyStyle(":/qss/manpager.css");
Main w;
w.show();
return app.exec();
}
示例7: main
int main(int argc, char** argv)
{
QApplication app(argc,argv);
Main m;
QString qtdir = getenv("QTDIR");
QString qfeatures = qtdir + "/src/tools/qfeatures.txt";
//QString qfeatures = qtdir + "/include/qfeatures.h";
QString qconfig = qtdir + "/include/qconfig.h";
for (int i=1; i<argc; i++) {
QString arg = argv[i];
if ( arg == "-f" && i+i<argc ) {
qfeatures = argv[++i];
} else {
qconfig = argv[i];
}
}
m.loadFeatures(qfeatures);
m.loadConfig(qconfig);
m.resize(m.sizeHint()+QSize(500,300));
app.setMainWidget(&m);
m.show();
return app.exec();
}
示例8: newView
void Main::newView()
{
// Open a new view... have it delete when closed.
Main *m = new Main(canvas, 0, 0, Qt::WDestructiveClose);
m->show();
}