QtBase  v6.3.1
src_corelib_global_qglobal.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2016 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** BSD License Usage
18 ** Alternatively, you may use this file under the terms of the BSD license
19 ** as follows:
20 **
21 ** "Redistribution and use in source and binary forms, with or without
22 ** modification, are permitted provided that the following conditions are
23 ** met:
24 ** * Redistributions of source code must retain the above copyright
25 ** notice, this list of conditions and the following disclaimer.
26 ** * Redistributions in binary form must reproduce the above copyright
27 ** notice, this list of conditions and the following disclaimer in
28 ** the documentation and/or other materials provided with the
29 ** distribution.
30 ** * Neither the name of The Qt Company Ltd nor the names of its
31 ** contributors may be used to endorse or promote products derived
32 ** from this software without specific prior written permission.
33 **
34 **
35 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
36 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
38 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
39 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
43 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
46 **
47 ** $QT_END_LICENSE$
48 **
49 ****************************************************************************/
50 
52 label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
53 label->setAlignment({ });
55 
56 
58 class MyClass
59 {
60 public:
61  enum Option {
62  NoOptions = 0x0,
63  ShowTabs = 0x1,
64  ShowAll = 0x2,
65  SqueezeBlank = 0x4
66  };
68  ...
69 };
70 
71 Q_DECLARE_OPERATORS_FOR_FLAGS(MyClass::Options)
73 
77 
79 typedef QFlags<Enum> Flags;
81 
82 
84 int myValue = 10;
85 int minValue = 2;
86 int maxValue = 6;
87 
89 // boundedValue == 6
91 
92 
94 if (!driver()->isOpen() || driver()->isOpenError()) {
95  qWarning("QSqlQuery::exec: database not open");
96  return false;
97 }
99 
100 
102 qint64 value = Q_INT64_C(932838457459459);
104 
105 
107 quint64 value = Q_UINT64_C(932838457459459);
109 
110 
112 void myMsgHandler(QtMsgType, const char *);
114 
115 
117 qint64 value = Q_INT64_C(932838457459459);
119 
120 
122 quint64 value = Q_UINT64_C(932838457459459);
124 
125 
128 int myValue = -4;
129 
131 // absoluteValue == 4
133 
134 
136 double valueA = 2.3;
137 double valueB = 2.7;
138 
140 // roundedValueA = 2
142 // roundedValueB = 3
144 
146 float valueA = 2.3;
147 float valueB = 2.7;
148 
150 // roundedValueA = 2
152 // roundedValueB = 3
154 
155 
157 double valueA = 42949672960.3;
158 double valueB = 42949672960.7;
159 
161 // roundedValueA = 42949672960
163 // roundedValueB = 42949672961
165 
167 float valueA = 42949672960.3;
168 float valueB = 42949672960.7;
169 
171 // roundedValueA = 42949672960
173 // roundedValueB = 42949672961
175 
176 
178 int myValue = 6;
179 int yourValue = 4;
180 
181 int minValue = qMin(myValue, yourValue);
182 // minValue == yourValue
184 
185 
187 int myValue = 6;
188 int yourValue = 4;
189 
190 int maxValue = qMax(myValue, yourValue);
191 // maxValue == myValue
193 
194 
196 int myValue = 10;
197 int minValue = 2;
198 int maxValue = 6;
199 
200 int boundedValue = qBound(minValue, myValue, maxValue);
201 // boundedValue == 6
203 
204 
206 #if QT_VERSION >= QT_VERSION_CHECK(4, 1, 0)
207  QIcon icon = style()->standardIcon(QStyle::SP_TrashIcon);
208 #else
209  QPixmap pixmap = style()->standardPixmap(QStyle::SP_TrashIcon);
210  QIcon icon(pixmap);
211 #endif
213 
214 
216 // File: div.cpp
217 
218 #include <QtGlobal>
219 
220 int divide(int a, int b)
221 {
222  Q_ASSERT(b != 0);
223  return a / b;
224 }
226 
227 
229 ASSERT: "b != 0" in file div.cpp, line 7
231 
232 
234 // File: div.cpp
235 
236 #include <QtGlobal>
237 
238 int divide(int a, int b)
239 {
240  Q_ASSERT_X(b != 0, "divide", "division by zero");
241  return a / b;
242 }
244 
245 
247 ASSERT failure in divide: "division by zero", file div.cpp, line 7
249 
250 
252 int *a;
253 
254 Q_CHECK_PTR(a = new int[80]); // WRONG!
255 
256 a = new (nothrow) int[80]; // Right
257 Q_CHECK_PTR(a);
259 
260 
262 template<typename TInputType>
263 const TInputType &myMin(const TInputType &value1, const TInputType &value2)
264 {
265  qDebug() << Q_FUNC_INFO << "was called with value1:" << value1 << "value2:" << value2;
266 
267  if(value1 < value2)
268  return value1;
269  else
270  return value2;
271 }
273 
274 
276 #include <qapplication.h>
277 #include <stdio.h>
278 #include <stdlib.h>
279 
281 {
282  QByteArray localMsg = msg.toLocal8Bit();
283  const char *file = context.file ? context.file : "";
284  const char *function = context.function ? context.function : "";
285  switch (type) {
286  case QtDebugMsg:
287  fprintf(stderr, "Debug: %s (%s:%u, %s)\n", localMsg.constData(), file, context.line, function);
288  break;
289  case QtInfoMsg:
290  fprintf(stderr, "Info: %s (%s:%u, %s)\n", localMsg.constData(), file, context.line, function);
291  break;
292  case QtWarningMsg:
293  fprintf(stderr, "Warning: %s (%s:%u, %s)\n", localMsg.constData(), file, context.line, function);
294  break;
295  case QtCriticalMsg:
296  fprintf(stderr, "Critical: %s (%s:%u, %s)\n", localMsg.constData(), file, context.line, function);
297  break;
298  case QtFatalMsg:
299  fprintf(stderr, "Fatal: %s (%s:%u, %s)\n", localMsg.constData(), file, context.line, function);
300  break;
301  }
302 }
303 
304 int main(int argc, char **argv)
305 {
307  QApplication app(argc, argv);
308  ...
309  return app.exec();
310 }
312 
313 
315 qDebug("Items in list: %d", myList.size());
317 
318 
320 qDebug() << "Brush:" << myQBrush << "Other value:" << i;
322 
323 
325 qInfo("Items in list: %d", myList.size());
327 
329 qInfo() << "Brush:" << myQBrush << "Other value:" << i;
331 
333 void f(int c)
334 {
335  if (c > 200)
336  qWarning("f: bad argument, c == %d", c);
337 }
339 
340 
342 qWarning() << "Brush:" << myQBrush << "Other value:" << i;
344 
345 
347 void load(const QString &fileName)
348 {
350  if (!file.exists())
351  qCritical("File '%s' does not exist!", qUtf8Printable(fileName));
352 }
354 
355 
357 qCritical() << "Brush:" << myQBrush << "Other value:" << i;
359 
360 
362 int divide(int a, int b)
363 {
364  if (b == 0) // program error
365  qFatal("divide: cannot divide by zero");
366  return a / b;
367 }
369 
370 
372 forever {
373  ...
374 }
376 
377 
379 CONFIG += no_keywords
381 
382 
384 CONFIG += no_keywords
386 
387 
389 QString FriendlyConversation::greeting(int type)
390 {
391  static const char *greeting_strings[] = {
392  QT_TR_NOOP("Hello"),
393  QT_TR_NOOP("Goodbye")
394  };
395  return tr(greeting_strings[type]);
396 }
398 
399 
401 static const char *greeting_strings[] = {
402  QT_TRANSLATE_NOOP("FriendlyConversation", "Hello"),
403  QT_TRANSLATE_NOOP("FriendlyConversation", "Goodbye")
404 };
405 
406 QString FriendlyConversation::greeting(int type)
407 {
408  return tr(greeting_strings[type]);
409 }
410 
411 QString global_greeting(int type)
412 {
413  return qApp->translate("FriendlyConversation",
414  greeting_strings[type]);
415 }
417 
418 
420 
421 static { const char *source; const char *comment; } greeting_strings[] =
422 {
423  QT_TRANSLATE_NOOP3("FriendlyConversation", "Hello",
424  "A really friendly hello"),
425  QT_TRANSLATE_NOOP3("FriendlyConversation", "Goodbye",
426  "A really friendly goodbye")
427 };
428 
429 QString FriendlyConversation::greeting(int type)
430 {
431  return tr(greeting_strings[type].source,
432  greeting_strings[type].comment);
433 }
434 
435 QString global_greeting(int type)
436 {
437  return qApp->translate("FriendlyConversation",
438  greeting_strings[type].source,
439  greeting_strings[type].comment);
440 }
442 
443 
445 static const char * const StatusClass::status_strings[] = {
446  QT_TR_N_NOOP("There are %n new message(s)"),
447  QT_TR_N_NOOP("There are %n total message(s)")
448 };
449 
450 QString StatusClass::status(int type, int count)
451 {
452  return tr(status_strings[type], nullptr, count);
453 }
455 
457 static const char * const greeting_strings[] = {
458  QT_TRANSLATE_N_NOOP("Welcome Msg", "Hello, you have %n message(s)"),
459  QT_TRANSLATE_N_NOOP("Welcome Msg", "Hi, you have %n message(s)")
460 };
461 
462 QString global_greeting(int type, int msgcnt)
463 {
464  return translate("Welcome Msg", greeting_strings[type], nullptr, msgcnt);
465 }
467 
469 static { const char * const source; const char * const comment; } status_strings[] = {
470  QT_TRANSLATE_N_NOOP3("Message Status", "Hello, you have %n message(s)",
471  "A login message status"),
472  QT_TRANSLATE_N_NOOP3("Message status", "You have %n new message(s)",
473  "A new message query status")
474 };
475 
476 QString FriendlyConversation::greeting(int type, int count)
477 {
478  return tr(status_strings[type].source,
479  status_strings[type].comment, count);
480 }
481 
482 QString global_greeting(int type, int count)
483 {
484  return qApp->translate("Message Status",
485  status_strings[type].source,
486  status_strings[type].comment,
487  count);
488 }
490 
491 
493  //% "%n fooish bar(s) found.\n"
494  //% "Do you want to continue?"
495  QString text = qtTrId("qtn_foo_bar", n);
497 
498 
500 static const char * const ids[] = {
501  //% "This is the first text."
502  QT_TRID_NOOP("qtn_1st_text"),
503  //% "This is the second text."
504  QT_TRID_NOOP("qtn_2nd_text"),
505  0
506 };
507 
508 void TheClass::addLabels()
509 {
510  for (int i = 0; ids[i]; ++i)
511  new QLabel(qtTrId(ids[i]), this);
512 }
514 
516 static const char * const ids[] = {
517  //% "%n foo(s) found."
518  QT_TRID_N_NOOP("qtn_foo"),
519  //% "%n bar(s) found."
520  QT_TRID_N_NOOP("qtn_bar"),
521  0
522 };
523 
524 QString result(int type, int n)
525 {
526  return qtTrId(ids[type], n);
527 }
529 
531 qWarning("%s: %s", qUtf8Printable(key), qUtf8Printable(value));
533 
534 
536 qWarning("%ls: %ls", qUtf16Printable(key), qUtf16Printable(value));
538 
539 
541 struct Point2D
542 {
543  int x;
544  int y;
545 };
546 
549 
550 
552 class Point2D
553 {
554 public:
555  Point2D() { data = new int[2]; }
556  Point2D(const Point2D &other) { ... }
557  ~Point2D() { delete[] data; }
558 
559  Point2D &operator=(const Point2D &other) { ... }
560 
561  int x() const { return data[0]; }
562  int y() const { return data[1]; }
563 
564 private:
565  int *data;
566 };
567 
570 
571 
573 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
574 ...
575 #endif
576 
577 or
578 
579 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
580 ...
581 #endif
582 
584 
585 
587 
588 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
589 ...
590 #endif
591 
593 
594 
596 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
597 ...
598 #endif
599 
601 
603 namespace QT_NAMESPACE {
605 
607 }
609 
611 class MyClass : public QObject
612 {
613 private:
615 };
616 
618 
620 class MyClass : public QObject
621 {
622 private:
623  MyClass(const MyClass &) = delete;
624  MyClass &operator=(const MyClass &) = delete;
625 };
627 
629 QWidget w = QWidget();
631 
633 // Instead of comparing with 0.0
634 qFuzzyCompare(0.0, 1.0e-200); // This will return false
635 // Compare adding 1 to both values will fix the problem
636 qFuzzyCompare(1 + 0.0, 1 + 1.0e-200); // This will return true
638 
640 CApaApplication *myApplicationFactory();
642 
643 
645 void myMessageHandler(QtMsgType, const QMessageLogContext &, const QString &);
647 
649 class B {...};
650 class C {...};
651 class D {...};
652 struct A : public B {
653  C c;
654  D d;
655 };
657 
659 template<> class QTypeInfo<A> : public QTypeInfoMerger<A, B, C, D> {};
661 
663  struct Foo {
664  void overloadedFunction();
665  void overloadedFunction(int, const QString &);
666  };
667  ... qOverload<>(&Foo::overloadedFunction)
668  ... qOverload<int, const QString &>(&Foo::overloadedFunction)
670 
672  ... QOverload<>::of(&Foo::overloadedFunction)
673  ... QOverload<int, const QString &>::of(&Foo::overloadedFunction)
675 
677  struct Foo {
678  void overloadedFunction(int, const QString &);
679  void overloadedFunction(int, const QString &) const;
680  };
681  ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
682  ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)
684 
686  // the condition inside the "if" will be successful most of the times
687  for (int i = 1; i <= 365; i++) {
688  if (Q_LIKELY(isWorkingDay(i))) {
689  ...
690  }
691  ...
692  }
694 
696 bool readConfiguration(const QFile &file)
697 {
698  // We expect to be asked to read an existing file
699  if (Q_UNLIKELY(!file.exists())) {
700  qWarning() << "File not found";
701  return false;
702  }
703 
704  ...
705  return true;
706 }
708 
710  enum Shapes {
711  Rectangle,
712  Triangle,
713  Circle,
714  NumShapes
715  };
717 
719  switch (shape) {
720  case Rectangle:
721  return rectangle();
722  case Triangle:
723  return triangle();
724  case Circle:
725  return circle();
726  case NumShapes:
727  Q_UNREACHABLE();
728  break;
729  }
731 
733 #include <QtGlobal>
734 
735 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
736 #include <QtWidgets>
737 #else
738 #include <QtGui>
739 #endif
741 
743  qgetenv(varName).isEmpty()
745 
747  qgetenv(varName).toInt(ok, 0)
749 
751  !qgetenv(varName).isNull()
753 
755  QString s = ...;
756  for (QChar ch : s) // detaches 's' (performs a deep-copy if 's' was shared)
757  process(ch);
758  for (QChar ch : qAsConst(s)) // ok, no detach attempt
759  process(ch);
761 
763  const QString s = ...;
764  for (QChar ch : s) // ok, no detach attempt on const objects
765  process(ch);
767 
769  for (QChar ch : funcReturningQString())
770  process(ch); // OK, the returned object is kept alive for the loop's duration
772 
774  for (QChar ch : qAsConst(funcReturningQString()))
775  process(ch); // ERROR: ch is copied from deleted memory
777 
779  for (QChar ch : qAsConst(funcReturningQString()))
780  process(ch); // ERROR: ch is copied from deleted memory
782 
784  try { expr; } catch(...) { qTerminate(); }
786 
788  // generate error if this doesn't actually override anything:
789  virtual void MyWidget::paintEvent(QPaintEvent*) override;
791 
793  // more-derived classes no longer permitted to override this:
794  virtual void MyWidget::paintEvent(QPaintEvent*) final;
796 
798  class QRect final { // cannot be derived from
799  // ...
800  };
small capitals from c petite p scientific i
[1]
Definition: afcover.h:80
Arabic default style
Definition: afstyles.h:94
const char msg[]
Definition: arch.cpp:46
MyClass & operator=(const MyClass &)
void paintEvent(QPaintEvent *event) override
[0]
The QApplication class manages the GUI application's control flow and main settings.
Definition: qapplication.h:68
static int exec()
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:85
const char * constData() const noexcept
Definition: qbytearray.h:144
The QChar class provides a 16-bit Unicode character.
Definition: qchar.h:84
The QFile class provides an interface for reading from and writing to files.
Definition: qfile.h:94
bool exists() const
Definition: qfile.cpp:376
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
Definition: qflags.h:89
The QIcon class provides scalable icons in different modes and states.
Definition: qicon.h:56
The QLabel widget provides a text or image display.
Definition: qlabel.h:56
bool qFuzzyCompare(const QMatrix4x4 &m1, const QMatrix4x4 &m2)
Definition: qmatrix4x4.cpp:774
The QMessageLogContext class provides additional information about a log message.
Definition: qlogging.h:70
The QObject class is the base class of all Qt objects.
Definition: qobject.h:125
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
Definition: qevent.h:539
The QPixmap class is an off-screen image representation that can be used as a paint device.
Definition: qpixmap.h:63
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:59
The QString class provides a Unicode character string.
Definition: qstring.h:388
@ SP_TrashIcon
Definition: qstyle.h:765
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:133
p1 load("image.bmp")
QString text
[meta data]
#define forever
Definition: ftrandom.c:53
@ AlignTop
Definition: qnamespace.h:178
@ AlignLeft
Definition: qnamespace.h:169
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld endif[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld SRC pixld MASK if DST_R else pixld DST_R endif if
@ Circle
Definition: qbezier.cpp:212
#define Q_UNLIKELY(x)
#define Q_LIKELY(x)
#define Q_UNREACHABLE()
#define Q_FUNC_INFO
QString qtTrId(const char *id, int n)
#define qApp
EGLOutputLayerEXT EGLint EGLAttrib value
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition: qflags.h:210
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition: qflags.h:227
qint64 qRound64(qfloat16 d) noexcept
Definition: qfloat16.h:230
int qRound(qfloat16 d) noexcept
Definition: qfloat16.h:227
Flags
Q_NORETURN void qTerminate() noexcept
Definition: qglobal.cpp:3294
#define Q_UINT64_C(c)
Definition: qglobal.h:296
unsigned long long quint64
Definition: qglobal.h:299
long long qint64
Definition: qglobal.h:298
#define Q_DISABLE_COPY(Class)
Definition: qglobal.h:515
#define Q_INT64_C(c)
Definition: qglobal.h:295
#define qCritical
Definition: qlogging.h:180
#define qInfo
Definition: qlogging.h:178
Q_CORE_EXPORT QtMessageHandler qInstallMessageHandler(QtMessageHandler)
QtMsgType
Definition: qlogging.h:60
@ QtCriticalMsg
Definition: qlogging.h:63
@ QtInfoMsg
Definition: qlogging.h:65
@ QtWarningMsg
Definition: qlogging.h:62
@ QtFatalMsg
Definition: qlogging.h:64
@ QtDebugMsg
Definition: qlogging.h:61
#define qWarning
Definition: qlogging.h:179
#define qFatal
Definition: qlogging.h:181
GLenum type
Definition: qopengl.h:270
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLuint64 key
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLenum GLsizei const GLuint * ids
GLenum GLenum GLsizei count
GLfloat GLfloat f
GLuint GLsizei const GLchar * label
[43]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat n
GLint y
GLsizei GLsizei GLchar * source
const GLubyte * c
Definition: qopenglext.h:12701
GLuint in
Definition: qopenglext.h:8870
GLuint64EXT * result
[6]
Definition: qopenglext.h:10932
GLdouble s
[6]
Definition: qopenglext.h:235
#define Q_ASSERT(cond)
Definition: qrandom.cpp:84
#define Q_ASSERT_X(cond, x, msg)
Definition: qrandom.cpp:85
QPointF qAbs(const QPointF &p)
Definition: qscroller.cpp:119
#define tr(X)
#define Q_FLAG(x)
Definition: qtmetamacros.h:105
@ Q_PRIMITIVE_TYPE
Definition: qtypeinfo.h:155
@ Q_RELOCATABLE_TYPE
Definition: qtypeinfo.h:156
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition: qtypeinfo.h:173
#define isOpen(pFd)
Definition: sqlite3.c:53456
qDebug("Items in list: %d", myList.size())
[23]
void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
[22]
int main(int argc, char **argv)
[1]
ASSERT failure in file div line int * a
[20]
double valueA
[10]
int absoluteValue
[9]
ASSERT failure in divide
[19]
QIcon icon
[15]
if(!driver() ->isOpen()||driver() ->isOpenError())
[3]
Q_CHECK_PTR(a=new int[80])
void myMsgHandler(QtMsgType, const char *)
[6]
const TInputType & myMin(const TInputType &value1, const TInputType &value2)
[21]
QFile file
[0]
QSharedPointer< T > other(t)
[5]
QApplication app(argc, argv)
[0]
widget render & pixmap
Enum
XmlOutput::xml_output comment(const QString &text)
Definition: xmloutput.h:219