本文整理汇总了C++中MainForm::show方法的典型用法代码示例。如果您正苦于以下问题:C++ MainForm::show方法的具体用法?C++ MainForm::show怎么用?C++ MainForm::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainForm
的用法示例。
在下文中一共展示了MainForm::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
MainForm *w = new MainForm;
w->show();
return a.exec();
}
示例2: main
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setApplicationName(APPLICATION_NAME);
// for (int i = 0; i < QStyleFactory::keys().length(); i++) {
// std::cout << QStyleFactory::keys().at(i).toStdString() << std::endl;
// }
// app.setStyle("Fusion");
qRegisterMetaType<streamer::DownloadError>("streamer::DownloadError");
qRegisterMetaType<streamer::MessageType>("streamer::MessageType");
qRegisterMetaType<streamer::PlaybackCallbackType>("streamer::MPVCallbackType");
qRegisterMetaType<streamer::DownloadInfo>("streamer::DownloadInfo");
qRegisterMetaType<std::string>("std::string");
qRegisterMetaType<std::list<std::string>>("std::list<std::string>");
qRegisterMetaType<std::list<std::string>>("std::list<std::string>&");
qRegisterMetaType<QTextBlock>("QTextBlock");
qRegisterMetaType<QTextCursor>("QTextCursor");
setlocale(LC_NUMERIC, "C"); // libmpv needs this :/
#if defined(MINGW)
QIcon::setThemeName("icons");
#endif
MainForm *form = new MainForm();
form->show();
if (form->disclaimer) {
return 0;
}
return app.exec();
}
示例3: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainForm w;
w.show();
return a.exec();
}
示例4: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainForm *mainform = new MainForm;
app.setMainWidget(mainform);
mainform->show();
return app.exec();
}
示例5: main
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
MainForm w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
示例6: main
int main(int argc, char *argv[])
{
HexApp app(argc, argv);
QTextCodec::setCodecForLocale(QTextCodec::codecForLocale());
MainForm *editor = new MainForm();
editor->show();
return app.exec();
}
示例7: main
int main(int argc, char **argv) {
QApplication app(argc, argv);
QTranslator qtTranslator;
qtTranslator.load("kboy_" + QLocale::system().name(), QDir::homePath()+"/.kboy/lang");
app.installTranslator(&qtTranslator);
MainForm dlg;
dlg.show();
return app.exec();
}
示例8: main
int main(int argc, char *argv[])
{
#if _DEBUG
AllocConsole();
#endif
argc =0;
QApplication a(argc, NULL);
MainForm w;
w.show();
return a.exec();
}
示例9: main
int main(int argc, char *argv[]) {
// initialize resources, if needed
Q_INIT_RESOURCE(neoxtrainer);
QApplication app(argc, argv);
QString version = "3.0";
// create and show your widgets here
MainForm form;
form.setWindowFlags(form.windowFlags() & ~Qt::WindowContextHelpButtonHint);
form.setWindowTitle(form.windowTitle() + " " + version);
form.show();
return app.exec();
}
示例10: main
int main( int argc, char **argv ) {
QApplication app( argc, argv );
QTextCodec::setCodecForCStrings( QTextCodec::codecForName("utf8:") );
//QPixmap pixmap(":/img/projekt.jpg");
//QSplashScreen splash(pixmap);
//app.setWindowIcon(QIcon(":/img/projekt-ikon.png"));
//splash.show();
//splash.showMessage(QObject::tr("Startuji..."), Qt::AlignTop | Qt::AlignRight);
MainForm mf;
// mf.setColor();
mf.show();
//splash.finish(&mf);
return app.exec();
}
示例11: main
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
parseCmdLine(app.arguments());
QTranslator translator;
if (!translator.load("yagf_" + QLocale::system().name(), "/usr/local/share/yagf/translations"))
translator.load("yagf_" + QLocale::system().name(), "/usr/share/yagf/translations");
app.installTranslator(&translator);
QTranslator translator2;
translator2.load("qt_" + QLocale::system().name(), "/usr/share/qt4/translations");
app.installTranslator(&translator2);
MainForm window;
window.show();
return app.exec();
}
示例12: main
int main( int argc, char *argv[] )
{
initCodec("UTF-8");
QApplication app(argc, argv);
DataBaseManager *db;
db = DataBaseManager::getInstance();
Q_UNUSED(db);
MainForm* mainWindow = new MainForm();
MainPresenter* presenter = new MainPresenter(mainWindow);
Q_UNUSED(presenter);
mainWindow->show();
return app.exec();
}
示例13: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Miro::Client client(argc, argv);
if (int rc = parseArgs(argc, argv) != 0)
return rc;
MainForm * mainForm = new MainForm(client);
a.setMainWidget(mainForm);
mainForm->setCaption("QtVideo");
mainForm->show();
return a.exec();
}
示例14: main
int main(int argc, char *argv[])
{
QTextCodec *codec = QTextCodec::codecForName("cp1251");
QTextCodec::setCodecForTr(codec);
QTextCodec::setCodecForCStrings(codec);
QTextCodec::setCodecForLocale(codec);
QApplication a(argc, argv);
a.setStyle("cleanlooks");
QResource::registerResource(QDir::currentPath()+"/icons.rcc");
a.addLibraryPath(QDir::currentPath()+"/plugins");
MainForm w;
w.show();
return a.exec();
}
示例15: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSurfaceFormat surface;
surface.setDepthBufferSize(24);
MainForm w;
w.setFormat(surface);
w.setWidth(800);
w.setHeight(600);
w.setMinimumWidth(800);
w.setMinimumHeight(600);
w.show();
//w.showFullScreen();
return a.exec();
}