94 if (!driver()->
isOpen() || driver()->isOpenError()) {
95 qWarning(
"QSqlQuery::exec: database not open");
157 double valueA = 42949672960.3;
158 double valueB = 42949672960.7;
167 float valueA = 42949672960.3;
168 float valueB = 42949672960.7;
206 #if QT_VERSION >= QT_VERSION_CHECK(4, 1, 0)
256 a =
new (nothrow)
int[80];
262 template<
typename TInputType>
263 const TInputType &
myMin(
const TInputType &value1,
const TInputType &value2)
265 qDebug() <<
Q_FUNC_INFO <<
"was called with value1:" << value1 <<
"value2:" << value2;
293 fprintf(stderr,
"Warning: %s (%s:%u, %s)\n", localMsg.
constData(),
file,
context.line,
function);
296 fprintf(stderr,
"Critical: %s (%s:%u, %s)\n", localMsg.
constData(),
file,
context.line,
function);
304 int main(
int argc,
char **argv)
315 qDebug(
"Items in list: %d", myList.size());
320 qDebug() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
325 qInfo(
"Items in list: %d", myList.size());
329 qInfo() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
342 qWarning() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
357 qCritical() <<
"Brush:" << myQBrush <<
"Other value:" <<
i;
365 qFatal(
"divide: cannot divide by zero");
379 CONFIG += no_keywords
384 CONFIG += no_keywords
391 static const char *greeting_strings[] = {
393 QT_TR_NOOP(
"Goodbye")
395 return tr(greeting_strings[
type]);
401 static const char *greeting_strings[] = {
402 QT_TRANSLATE_NOOP(
"FriendlyConversation",
"Hello"),
403 QT_TRANSLATE_NOOP(
"FriendlyConversation",
"Goodbye")
408 return tr(greeting_strings[
type]);
413 return qApp->translate(
"FriendlyConversation",
414 greeting_strings[
type]);
421 static {
const char *
source;
const char *
comment; } greeting_strings[] =
423 QT_TRANSLATE_NOOP3(
"FriendlyConversation",
"Hello",
424 "A really friendly hello"),
425 QT_TRANSLATE_NOOP3(
"FriendlyConversation",
"Goodbye",
426 "A really friendly goodbye")
437 return qApp->translate(
"FriendlyConversation",
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)")
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)")
464 return translate(
"Welcome Msg", greeting_strings[
type],
nullptr, msgcnt);
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")
484 return qApp->translate(
"Message Status",
500 static const char *
const ids[] = {
502 QT_TRID_NOOP(
"qtn_1st_text"),
504 QT_TRID_NOOP(
"qtn_2nd_text"),
508 void TheClass::addLabels()
510 for (
int i = 0;
ids[
i]; ++
i)
516 static const char *
const ids[] = {
518 QT_TRID_N_NOOP(
"qtn_foo"),
520 QT_TRID_N_NOOP(
"qtn_bar"),
555 Point2D() {
data =
new int[2]; }
556 Point2D(
const Point2D &
other) { ... }
557 ~Point2D() {
delete[]
data; }
559 Point2D &operator=(
const Point2D &
other) { ... }
561 int x()
const {
return data[0]; }
562 int y()
const {
return data[1]; }
573 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
579 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
588 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
596 #if Q_BYTE_ORDER == Q_BIG_ENDIAN
603 namespace QT_NAMESPACE {
640 CApaApplication *myApplicationFactory();
652 struct A :
public B {
664 void overloadedFunction();
665 void overloadedFunction(
int,
const QString &);
667 ... qOverload<>(&Foo::overloadedFunction)
668 ... qOverload<int, const QString &>(&Foo::overloadedFunction)
672 ... QOverload<>::of(&Foo::overloadedFunction)
673 ... QOverload<int, const QString &>::of(&Foo::overloadedFunction)
678 void overloadedFunction(
int,
const QString &);
679 void overloadedFunction(
int,
const QString &)
const;
681 ... qConstOverload<int, const QString &>(&Foo::overloadedFunction)
682 ... qNonConstOverload<int, const QString &>(&Foo::overloadedFunction)
687 for (
int i = 1;
i <= 365;
i++) {
696 bool readConfiguration(
const QFile &
file)
735 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
743 qgetenv(varName).isEmpty()
747 qgetenv(varName).toInt(
ok, 0)
751 !qgetenv(varName).isNull()
769 for (
QChar ch : funcReturningQString())
774 for (
QChar ch : qAsConst(funcReturningQString()))
779 for (
QChar ch : qAsConst(funcReturningQString()))
small capitals from c petite p scientific i
[1]
MyClass & operator=(const MyClass &)
The QApplication class manages the GUI application's control flow and main settings.
The QByteArray class provides an array of bytes.
const char * constData() const noexcept
The QChar class provides a 16-bit Unicode character.
The QFile class provides an interface for reading from and writing to files.
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
The QIcon class provides scalable icons in different modes and states.
The QLabel widget provides a text or image display.
bool qFuzzyCompare(const QMatrix4x4 &m1, const QMatrix4x4 &m2)
The QMessageLogContext class provides additional information about a log message.
The QObject class is the base class of all Qt objects.
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QRect class defines a rectangle in the plane using integer precision.
The QString class provides a Unicode character string.
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 ®2 endm macro vzip8 reg2 vzip d d ®2 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
QString qtTrId(const char *id, int n)
EGLOutputLayerEXT EGLint EGLAttrib value
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
qint64 qRound64(qfloat16 d) noexcept
int qRound(qfloat16 d) noexcept
Q_NORETURN void qTerminate() noexcept
unsigned long long quint64
#define Q_DISABLE_COPY(Class)
Q_CORE_EXPORT QtMessageHandler qInstallMessageHandler(QtMessageHandler)
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 Q_DECLARE_TYPEINFO(TYPE, FLAGS)
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]
ASSERT failure in divide
[19]
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]
QApplication app(argc, argv)
[0]
XmlOutput::xml_output comment(const QString &text)