36if (!driver()->isOpen() || driver()->isOpenError()) {
37 qWarning(
"QSqlQuery::exec: database not open");
94double valueA = 42949672960.3;
95double valueB = 42949672960.7;
104float valueA = 42949672960.3;
105float valueB = 42949672960.7;
143#if QT_VERSION >= QT_VERSION_CHECK(4, 1, 0)
193a =
new (nothrow)
int[80];
199template<
typename TInputType>
200const TInputType &
myMin(
const TInputType &value1,
const TInputType &
value2)
252qDebug(
"Items in list: %d", myList.size());
257qDebug() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
262qInfo(
"Items in list: %d", myList.size());
266qInfo() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
279qWarning() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
294qCritical() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
302 qFatal(
"divide: cannot divide by zero");
328 static const char *greeting_strings[] = {
332 return tr(greeting_strings[
type]);
338static const char *greeting_strings[] = {
345 return tr(greeting_strings[
type]);
350 return qApp->translate(
"FriendlyConversation",
351 greeting_strings[
type]);
358static {
const char *
source;
const char *comment; } greeting_strings[] =
361 "A really friendly hello"),
363 "A really friendly goodbye")
369 greeting_strings[
type].comment);
374 return qApp->translate(
"FriendlyConversation",
376 greeting_strings[
type].comment);
382static const char *
const StatusClass::status_strings[] = {
394static const char *
const greeting_strings[] = {
401 return translate(
"Welcome Msg", greeting_strings[
type],
nullptr, msgcnt);
406static {
const char *
const source;
const char *
const comment; } status_strings[] = {
408 "A login message status"),
410 "A new message query status")
421 return qApp->translate(
"Message Status",
423 status_strings[
type].comment,
437static const char *
const ids[] = {
445void TheClass::addLabels()
447 for (
int i = 0;
ids[
i]; ++
i)
453static const char *
const ids[] = {
482 Point2D() {
data =
new int[2]; }
483 Point2D(
const Point2D &
other) { ... }
484 ~Point2D() {
delete[]
data; }
486 Point2D &operator=(
const Point2D &
other) { ... }
488 int x()
const {
return data[0]; }
489 int y()
const {
return data[1]; }
500#if Q_BYTE_ORDER == Q_BIG_ENDIAN
506#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
515#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
523#if Q_BYTE_ORDER == Q_BIG_ENDIAN
530namespace QT_NAMESPACE {
586 void overloadedFunction();
587 void overloadedFunction(
int,
const QString &);
589 ... qOverload<>(&Foo::overloadedFunction)
590 ... qOverload<int, const QString &>(&Foo::overloadedFunction)
595 void overloadedFunction(
int,
const QString &);
596 void overloadedFunction(
int,
const QString &)
const;
598 ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
599 ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)
604 for (
int i = 1;
i <= 365;
i++) {
652#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
686 for (
QChar ch : funcReturningQString())
691 for (
QChar ch : qAsConst(funcReturningQString()))
696 for (
QChar ch : qAsConst(funcReturningQString()))
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
int toInt(bool *ok=nullptr, int base=10) const
Returns the byte array converted to an int using base base, which is ten by default.
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
bool isNull() const noexcept
Returns true if this byte array is null; otherwise returns false.
bool exists() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QIcon class provides scalable icons in different modes and states.
The QLabel widget provides a text or image display.
The QPaintEvent class contains event parameters for paint events.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLocal8Bit() const &
QtMessageHandler qInstallMessageHandler(QtMessageHandler h)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QT_BEGIN_NAMESPACE Q_NORETURN void qTerminate() noexcept
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
qint64 qRound64(qfloat16 d) noexcept
int qRound(qfloat16 d) noexcept
void uint64_t uint64_t uint64_t value2
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qBound(const T &min, const T &val, const T &max)
constexpr const T & qMax(const T &a, const T &b)
constexpr T qAbs(const T &t)
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLenum GLsizei const GLuint * ids
GLenum GLenum GLsizei count
GLuint GLsizei const GLchar * label
[43]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source
#define Q_ASSERT_X(cond, x, msg)
#define qUtf8Printable(string)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
#define QT_TRANSLATE_NOOP(scope, x)
Q_CORE_EXPORT QString qtTrId(const char *id, int n=-1)
#define QT_TRID_N_NOOP(id)
#define QT_TRANSLATE_N_NOOP3(scope, x, comment)
#define QT_TRANSLATE_N_NOOP(scope, x)
#define QT_TRANSLATE_NOOP3(scope, x, comment)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
unsigned long long quint64
static bool translate(xcb_connection_t *connection, xcb_window_t child, xcb_window_t parent, int *x, int *y)
void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
[22]
ASSERT failure in file div line int * a
[20]
const TInputType & myMin(const TInputType &value1, const TInputType &value2)
[21]
ASSERT failure in divide
[19]
Q_CHECK_PTR(a=new int[80])
if(qFloatDistance(a, b)<(1<< 7))
[0]
QApplication app(argc, argv)
[0]