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)
213#include <QApplication>
222 static FILE *
f = fopen(
"log.txt",
"a");
241qDebug(
"Items in list: %d", myList.size());
246qDebug() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
251qInfo(
"Items in list: %d", myList.size());
255qInfo() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
268qWarning() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
283qCritical() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
291 qFatal(
"divide: cannot divide by zero");
317 static const char *greeting_strings[] = {
321 return tr(greeting_strings[
type]);
327static const char *greeting_strings[] = {
334 return tr(greeting_strings[
type]);
339 return qApp->translate(
"FriendlyConversation",
340 greeting_strings[
type]);
347static {
const char *
source;
const char *comment; } greeting_strings[] =
350 "A really friendly hello"),
352 "A really friendly goodbye")
358 greeting_strings[
type].comment);
363 return qApp->translate(
"FriendlyConversation",
365 greeting_strings[
type].comment);
371static const char *
const StatusClass::status_strings[] = {
383static const char *
const greeting_strings[] = {
390 return translate(
"Welcome Msg", greeting_strings[
type],
nullptr, msgcnt);
395static {
const char *
const source;
const char *
const comment; } status_strings[] = {
397 "A login message status"),
399 "A new message query status")
410 return qApp->translate(
"Message Status",
412 status_strings[
type].comment,
426static const char *
const ids[] = {
434void TheClass::addLabels()
436 for (
int i = 0;
ids[
i]; ++
i)
442static const char *
const ids[] = {
471 Point2D() {
data =
new int[2]; }
472 Point2D(
const Point2D &
other) { ... }
473 ~Point2D() {
delete[]
data; }
475 Point2D &operator=(
const Point2D &
other) { ... }
477 int x()
const {
return data[0]; }
478 int y()
const {
return data[1]; }
489#if Q_BYTE_ORDER == Q_BIG_ENDIAN
495#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
504#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
512#if Q_BYTE_ORDER == Q_BIG_ENDIAN
519namespace QT_NAMESPACE {
575 void overloadedFunction();
576 void overloadedFunction(
int,
const QString &);
578 ... qOverload<>(&Foo::overloadedFunction)
579 ... qOverload<int, const QString &>(&Foo::overloadedFunction)
584 void overloadedFunction(
int,
const QString &);
585 void overloadedFunction(
int,
const QString &)
const;
587 ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
588 ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)
593 for (
int i = 1;
i <= 365;
i++) {
641#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
675 for (
QChar ch : funcReturningQString())
680 for (
QChar ch : qAsConst(funcReturningQString()))
685 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...
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
QtMessageHandler qInstallMessageHandler(QtMessageHandler h)
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
Q_CORE_EXPORT QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &buf)
void(* QtMessageHandler)(QtMsgType, const QMessageLogContext &, const QString &)
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
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLsizei const GLchar * label
[43]
GLuint GLsizei const GLchar * message
GLsizei GLsizei GLchar * source
#define Q_ASSERT_X(cond, x, msg)
#define qUtf8Printable(string)
#define qPrintable(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)
ASSERT failure in file div line int * a
[20]
const TInputType & myMin(const TInputType &value1, const TInputType &value2)
[21]
ASSERT failure in divide
[19]
void logToFile(QtMsgType type, const QMessageLogContext &context, const QString &msg)
QtMessageHandler originalHandler
[22]
Q_CHECK_PTR(a=new int[80])
if(qFloatDistance(a, b)<(1<< 7))
[0]
QApplication app(argc, argv)
[0]