当前位置: 首页>>代码示例>>C++>>正文


C++ QMessageBox::about方法代码示例

本文整理汇总了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>&copy; 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);
}
开发者ID:danvratil,项目名称:TepSonic,代码行数:26,代码来源:mainwindow.cpp

示例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();
}
开发者ID:t27,项目名称:other-projects,代码行数:7,代码来源:peac.cpp

示例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;
}
开发者ID:ImageQt,项目名称:PicDeal-v2.0,代码行数:7,代码来源:picdealmain.cpp

示例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);

}
开发者ID:kreatimont,项目名称:CourseWork_upd,代码行数:8,代码来源:mainwindow.cpp

示例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);
}
开发者ID:shnellpavel,项目名称:STP_labs,代码行数:9,代码来源:calcinterface.cpp

示例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();
    }
}
开发者ID:Dhesso,项目名称:CooQuiz,代码行数:25,代码来源:mainwindow.cpp

示例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>"));
}
开发者ID:FalseCAM,项目名称:PhotosDD,代码行数:19,代码来源:photosdd.cpp

示例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();
    }
}
开发者ID:Borsuk23,项目名称:Gierek_Qt,代码行数:19,代码来源:mainwindow.cpp

示例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);
}

}
开发者ID:thln,项目名称:math_puzzle,代码行数:101,代码来源:graphicswindow.cpp

示例10: on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered()
{
    QMessageBox *msg = new QMessageBox();
    msg->about(this,"Gierek","Prosta gra symulująca kopalnię");
}
开发者ID:Borsuk23,项目名称:Gierek_Qt,代码行数:5,代码来源:mainwindow.cpp

示例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");
}
开发者ID:Armine13,项目名称:Segmentation_Project,代码行数:6,代码来源:mainwindow.cpp

示例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);
}
开发者ID:shnellpavel,项目名称:STP_labs,代码行数:6,代码来源:calcinterface.cpp

示例13: AboutProgramm

void DetaDoc::AboutProgramm()
{
	QMessageBox *box = new QMessageBox;
	box->about(this, tr("About"), tr("Diplom Work Shagin Kriill"));
}
开发者ID:seacomandor,项目名称:DetaDoc,代码行数:5,代码来源:detadoc.cpp

示例14: about

void MainWindow::about(void)
{
    QMessageBox mbox;

    mbox.about(this, tr("关于"), tr("版本号: " VERSION));
}
开发者ID:heyuanjie87,项目名称:QT,代码行数:6,代码来源:mainwindow.cpp

示例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>"));
 }
开发者ID:DarellAdams,项目名称:simplevideoplayer,代码行数:9,代码来源:videoplayer.cpp


注:本文中的QMessageBox::about方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。