5#include <private/qqmlglobal_p.h>
7#include <QtCore/qpoint.h>
8#include <QtCore/qrect.h>
9#include <QtCore/qsize.h>
10#include <QtCore/qvariant.h>
11#include <QtCore/qdatetime.h>
17 switch (preferredType.
id()) {
22#if QT_CONFIG(datestring)
23 case QMetaType::QDate:
25 case QMetaType::QTime:
27 case QMetaType::QDateTime:
30 case QMetaType::QPointF:
32 case QMetaType::QPoint:
34 case QMetaType::QSizeF:
36 case QMetaType::QSize:
38 case QMetaType::QRectF:
40 case QMetaType::QRect:
66#if QT_CONFIG(datestring)
70 if (
ok) *
ok =
d.isValid();
77 if (
ok) *
ok =
t.isValid();
84 if (
ok) *
ok =
d.isValid();
102 if (!xGood || !yGood) {
110 return QPointF(xCoord, yCoord);
126 if (!wGood || !hGood) {
146 bool xGood, yGood, wGood, hGood;
154 if (!xGood || !yGood || !wGood || !hGood) {
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
\inmodule QtCore\reentrant
virtual QVariant colorFromString(const QString &, bool *)
virtual unsigned rgbaFromString(const QString &, bool *)
static QVariant createValueType(const QJSValue &, QMetaType)
\inmodule QtCore\reentrant
Q_CORE_EXPORT double toDouble(bool *ok=nullptr) const
Returns the string view converted to a double value.
constexpr QStringView left(qsizetype n) const noexcept
constexpr QStringView mid(qsizetype pos, qsizetype n=-1) const noexcept
Returns the substring of length length starting at position start in this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
\inmodule QtCore \reentrant
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Q_QML_PRIVATE_EXPORT QPointF pointFFromString(const QString &, bool *ok=nullptr)
Q_QML_PRIVATE_EXPORT unsigned rgbaFromString(const QString &, bool *ok=nullptr)
Q_QML_PRIVATE_EXPORT QSizeF sizeFFromString(const QString &, bool *ok=nullptr)
Q_QML_PRIVATE_EXPORT QVariant variantFromString(const QString &, QMetaType preferredType, bool *ok=nullptr)
Q_QML_PRIVATE_EXPORT QRectF rectFFromString(const QString &, bool *ok=nullptr)
Q_QML_PRIVATE_EXPORT QVariant colorFromString(const QString &, bool *ok=nullptr)
Combined button and popup list for selecting options.
int qRound(qfloat16 d) noexcept
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
static std::optional< QDate > dateFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatDate(datetime date, variant format, variant localeFormatOption)
static std::optional< QTime > timeFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatTime(datetime time, variant format, variant localeFormatOption)
static std::optional< QDateTime > dateTimeFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatDateTime(datetime dateTime, variant format, variant localeFormatOption)
Q_AUTOTEST_EXPORT QQmlColorProvider * QQml_colorProvider(void)
\inmodule QtCore \reentrant