本文整理汇总了C++中MessageBox::show方法的典型用法代码示例。如果您正苦于以下问题:C++ MessageBox::show方法的具体用法?C++ MessageBox::show怎么用?C++ MessageBox::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageBox
的用法示例。
在下文中一共展示了MessageBox::show方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: distribute
// Help callback function
void AViz::distribute()
{
// Launch a message box
MessageBox * mb = new MessageBox(SHORT_DISTRIBUTE_STRING, this);
mb->show();
// Print the full distribution conditions
printf("%s\n", DISTRIBUTE_STRING );
}
示例2: license
// Help callback function
void AViz::license() {
// Launch a message box
MessageBox *mb = new MessageBox(SHORT_LICENSE_STRING, this);
mb->show();
// Print the full license conditions
printf("%s\n", LICENSE_STRING );
printf("%s\n", DISTRIBUTE_STRING );
}
示例3: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MessageBox newMessage;
newMessage.show();
return a.exec();
}
示例4: main
int main(int argc, char * argv[])
{
QApplication app(argc,argv);
QFont f("ZYSong18030",12); QApplication::setFont(f);
QTranslator translator;
translator.load("messagebox_zh");
app.installTranslator(&translator);
MessageBox msg;
msg.show();
return app.exec();
}
示例5: ShowAsks
void MainWindow::ShowAsks(User frd)
{
QMessageBox::StandardButton reply;
reply = QMessageBox::question(this, "Someone want to talk to you",
frd.name + " want to talk to you, agree?",
QMessageBox::Yes | QMessageBox::No);
if (reply == QMessageBox::Yes)
{
server->OkToTalk(frd);
MessageBox* mb = new MessageBox();
connect( mb,SIGNAL( MsgBoxClosed(int) ),this,SLOT( DeleteMsgBox(int) ) );
int port = mb->BindPort();
users.data[ 0 ].port = port;
frd.mid = mbs.size();
users.Add(frd);//update
mb->Init(users.data[ 0 ],frd);
mbs.append(mb);
mb->show();
}
示例6: messageBox
void ErrorMachine::messageBox(QString m)
{
MessageBox * mb = new MessageBox(m);
mb->show();
}
示例7: about
// Help callback function
void AViz::about() {
// Launch a message box
MessageBox *mb = new MessageBox(aviz::Version::getVersionInfo(), this);
mb->show();
}