本文整理汇总了C++中QMessageBox::about方法的典型用法代码示例。如果您正苦于以下问题:C++ QMessageBox::about方法的具体用法?C++ QMessageBox::about怎么用?C++ QMessageBox::about使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QMessageBox
的用法示例。
在下文中一共展示了QMessageBox::about方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: aboutTepSonic
/* Show "About Tepsonic" dialog */
void MainWindow::aboutTepSonic()
{
QMessageBox aboutDlg;
QStringList developers;
developers << QString::fromUtf8("Daniel Vrátil");
QStringList artwork;
artwork << QString::fromUtf8("Matěj Zvěřina")
<< QString::fromUtf8("Michael Ruml");
const QString str = tr("<h1>%1</h1>"
"Version %2"
"<p><a href=\"http://danvratil.github.io/TepSonic/\">http://danvratil.github.io/TepSonic/</a></p>"
"<p>This program is free software; you can redistribute it and/or modify it under the terms of "
"the GNU General Public License as published by the Free Software Foundation; either version "
"2 of the License, or (at your option) any later version.</p>"
"<h2>Developers:</h2><p>%3</p>"
"<h2>Artwork:</h2><p>%4</p>"
"<p>© 2009 - 2013 <a href=\"mailto:[email protected]\">Daniel Vrátil</a></p>")
.arg(QApplication::applicationName(),
QApplication::applicationVersion(),
developers.join(QLatin1String(", ")),
artwork.join(QLatin1String(", ")));
aboutDlg.about(this, tr("About TepSonic"), str);
}
示例2:
void PEAC::on_pushButton_3_clicked()
{
QMessageBox msgBox;
msgBox.about(this,"About PEAC","<p>Made By: two7dev</p>\n<p>This is for serious offline coding.</p>\n<p>If u just want answers, dont make a script for this,</p>\n<p> just <a href='http://bit.ly/LrPx68'>google</a> it</p>\n<p>For bugs, <a href='mailto:[email protected]'>Contact Here</a></p>");
//msgBox.exec();
}
示例3: on_IDM_ABORT_triggered
void PicDealMain::on_IDM_ABORT_triggered()
{
QMessageBox box;
box.setWindowIcon(QIcon(":/resources/PicDeal.ico"));
box.about(this,QString::fromUtf8("关于"),QString::fromUtf8("PicDeal v1.0.1\n简单的图片处理程序"));
return;
}
示例4: on_actionHelp_triggered
void MainWindow::on_actionHelp_triggered()
{
QString txt = "Created by \"Nadtoka A.A inc.\"LTD. 2016 - "
"Coursework 1st course -\"Structer and algorithm\"-";
QMessageBox s;
s.about(this,"About",txt);
}
示例5: on_btn_root_clicked
void CalcInterface::on_btn_root_clicked()
{
QString power = ui->pow_spin->text();
QString index = ui->ind_spin->text();
QString number = ui->editor_line->text();
QString res = control.execute_calc_command(com_Root, number + "|" + power + "|" + index);
QMessageBox box;
box.about(0, "Root", "Result: " + res);
}
示例6: on_pushButton_enviar_clicked
//envia resposta
void MainWindow::on_pushButton_enviar_clicked()
{
QMessageBox a;
if(mainquiz->Perguntas[this->questaoAtual].getResposta(resposta) == true){
a.about(this, "Correcao" , "correto");
//mainquiz->pontuacao++;
}else{
a.about(this, "Correção" , "incorreto");
}
this->questaoAtual ++;
//para verificar o debug
std::cout << (int)mainquiz->Perguntas.size()<< std::endl;
std::cout << questaoAtual << std::endl;
//verifica se a quantidade de questoes foi preencrida
if(questaoAtual != (int)mainquiz->Perguntas.size()){
on_pushButton_comecar_clicked();
}else{
close();
}
}
示例7: about
/*
About box to show information about PhotosDD library
*/
void PhotosDD::about(QWidget* parent = 0) {
QMessageBox aboutBox;
aboutBox.setWindowIcon(PhotosDD::applicationIcon());
aboutBox.about(
parent,
("About ") + PhotosDD::applicationName(),
("<p align=\"right\"><h1>") + PhotosDD::applicationName()
+ ("</h1></p>")
+ ("<p align=\"left\"><font size=\"2\" color=\"grey\">Version ")
+ PhotosDD::applicationVersion() + ("</font>")
+ ("<p align=\"left\">(C) 2011 ")
+ PhotosDD::organizationName() + ("</p>")
+ ("<p><a href=\"" + PhotosDD::applicationDomain() + "\">")
+ ("Homepage</a></p>") + ("<br/><br/><p>")
+ ("English translation: FalseCAM") + ("</p>"));
}
示例8: on_playTurnButton_clicked
void MainWindow::on_playTurnButton_clicked()
{
if(!this->game->PlayTurn(this->ui->salaryLabel->text().toDouble(),
new CoalTypeA(this->ui->coalAExtractionAmountLabel->text().toDouble(),0),
new CoalTypeB(this->ui->coalBExtractionAmountLabel->text().toDouble(),0),
new CoalTypeA(this->ui->coalASaleAmountLabel->text().toDouble(),this->ui->coalAPriceInput->text().toDouble()),
new CoalTypeB(this->ui->coalBSaleAmountLabel->text().toDouble(),this->ui->coalBPriceInput->text().toDouble())))
{
this->ui->windowPages->setCurrentWidget(this->ui->blankPage);
QMessageBox *msg = new QMessageBox();
msg->about(this,"KONIEC","Przegrałeś! \nTwój wynik: "+QString::number(this->game->GetPlayer()->GetScore()));
}else
{
this->refreshContent();
if(this->game->EndGame())
showStartPage();
}
}
示例9: moveTile
//.........这里部分代码省略.........
piece1->setDestinationY(zeroY);
piece1->setVelocityX((zeroX-tempX)/10);
piece1->setVelocityY((zeroY-tempY)/10);
piece1->getTimer()->start();
// piece1->moveTilesAnimate();
// piece1->setxCord(zeroX);
// piece1->setyCord(zeroY);
tiles[zero_index]->setPos(tempX, tempY);
tiles[zero_index]->setxCord(tempX);
tiles[zero_index]->setyCord(tempY);
// QPointF p(zeroX, zeroY);
// QRectF r(piece1);
// r.moveTo(p);
// setRect( r );
}
else if((tempY+100) == zeroY || (tempY-100) == zeroY)
{
// piece1->setPos(zeroX, zeroY);
// piece1->setxCord(zeroX);
// piece1->setyCord(zeroY);
piece1->setDestinationX(zeroX);
piece1->setDestinationY(zeroY);
piece1->setVelocityY((zeroY-tempY)/10);
piece1->setVelocityX((zeroX-tempX)/10);
piece1->getTimer()->start();
/*
timer = new QTimer(this);
timer->setInterval(1);
// connect(timer, SIGNAL(timeout()), this, SLOT(handletimer()));
timer->start();
while (true)
{
if((tempY+100) == zeroY)
{
piece1->setPos(tempX, tempY+1);
}
if((tempY-100) == zeroY)
{
piece1->setPos(tempX, tempY-1);
}
counter++;
if(counter == 100)
{
timer->stop();
break;
}
}
// piece1->getTimer()->start();
// piece1->moveTilesAnimate();
for(int i=0; i<100; i++)
{
if((tempY+100) == zeroY)
{
piece1->setPos(tempX+i, tempY);
}
else if((tempY-100) == zeroY)
{
piece1->setPos(tempX-i, tempY);
}
wait(1);
}
*/
// piece1->setxCord(zeroX);
// piece1->setyCord(zeroY);
tiles[zero_index]->setPos(tempX, tempY);
tiles[zero_index]->setxCord(tempX);
tiles[zero_index]->setyCord(tempY);
}
}
zeroX = 0;
zeroY = 0;
tempX = 0;
tempY = 0;
zero_index = 0;
}
if (b->solved())
{
QMessageBox messagebox;
messagebox.about(0, "Congratulations!", "You have won the game.");
messagebox.setFixedSize(500,200);
}
}
示例10: on_actionAbout_triggered
void MainWindow::on_actionAbout_triggered()
{
QMessageBox *msg = new QMessageBox();
msg->about(this,"Gierek","Prosta gra symulująca kopalnię");
}
示例11: on_actionAbout_triggered
void MainWindow::on_actionAbout_triggered()
{
QMessageBox* dlg;
dlg->about(this,"About Seeded Segmentation","This application is the implementation of \"Laplacian"
"Coordinates for Seeded Image Segmentation\", Casaca et al., 2014.\n Author: Armine Vardazaryan");
}
示例12: on_btn_arg_rad_clicked
void CalcInterface::on_btn_arg_rad_clicked()
{
QString res = control.execute_calc_command(com_Arg_rad, ui->editor_line->text());
QMessageBox box;
box.about(0, "Arg_rad", "Result: " + res);
}
示例13: AboutProgramm
void DetaDoc::AboutProgramm()
{
QMessageBox *box = new QMessageBox;
box->about(this, tr("About"), tr("Diplom Work Shagin Kriill"));
}
示例14: about
void MainWindow::about(void)
{
QMessageBox mbox;
mbox.about(this, tr("关于"), tr("版本号: " VERSION));
}
示例15: about
/**
funzione che apre un dialog informativo
*/
void videoplayer::about(void)
{
QMessageBox msgbox;
msgbox.about(this, tr("Info MediaPlayer"),tr("<center><b>Mediaplayer</b> implementato"
" utilizzando Qt5, openGL e ffmpeg realizzato da Gagliardelli Luca, Renzi Matteo e Esposito Giovanni</center>"));
}