QtGui/qmessagebox.h File Reference

qmessagebox.h File Reference
#include <QtGui/qdialog.h>

Classes

class  QMessageBox
 

Macros

#define QT_REQUIRE_VERSION(argc, argv, str)
 

Macro Definition Documentation

#define QT_REQUIRE_VERSION (   argc,
  argv,
  str 
)
Value:
QString sq = QString::fromLatin1(qVersion()); \
if ((sq.section(QChar::fromLatin1('.'),0,0).toInt()<<16)+\
(sq.section(QChar::fromLatin1('.'),1,1).toInt()<<8)+\
sq.section(QChar::fromLatin1('.'),2,2).toInt()<(s.section(QChar::fromLatin1('.'),0,0).toInt()<<16)+\
(s.section(QChar::fromLatin1('.'),1,1).toInt()<<8)+\
s.section(QChar::fromLatin1('.'),2,2).toInt()) { \
if (!qApp){ \
new QApplication(argc,argv); \
} \
QString s = QApplication::tr("Executable '%1' requires Qt "\
"%2, found Qt %3.").arg(qAppName()).arg(QString::fromLatin1(\
str)).arg(QString::fromLatin1(qVersion())); QMessageBox::critical(0, QApplication::tr(\
"Incompatible Qt Library Error"), s, QMessageBox::Abort, 0); qFatal("%s", s.toLatin1().data()); }}
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static StandardButton critical(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static QChar fromLatin1(char c)
Definition: qchar.h:378
static QString fromLatin1(const char *, int size=-1)
int toInt(bool *ok=0, int base=10) const
#define qApp
Q_CORE_EXPORT QString qAppName()
QString section(QChar sep, int start, int end=-1, SectionFlags flags=SectionDefault) const
Definition: qstring.h:781
GLdouble s
Definition: GLee.h:1173

Definition at line 344 of file qmessagebox.h.

Go to the source code of this file.