12#if QT_CONFIG(shortcut)
44#ifndef QT_NO_GEOM_VARIANT
53#include <private/qmetatype_p.h>
61#define QT_IMPL_METATYPEINTERFACE_GUI_TYPES(MetaTypeName, MetaTypeId, RealName) \
62 QT_METATYPE_INTERFACE_INIT(RealName),
67 default:
return nullptr;
70#undef QT_IMPL_METATYPEINTERFACE_GUI_TYPES
72 bool convert(
const void *from,
int fromTypeId,
void *to,
int toTypeId)
const override
76 bool onlyCheck = (from ==
nullptr && to ==
nullptr);
78 Q_ASSERT(onlyCheck || (
bool(from) &&
bool(to)));
81 switch (makePair(toTypeId, fromTypeId)) {
100#if QT_CONFIG(shortcut)
124 result = source.color();
static QBitmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Returns a copy of the given image converted to a bitmap using the specified image conversion flags.
static QBitmap fromPixmap(const QPixmap &pixmap)
Returns a copy of the given pixmap converted to a bitmap.
QPixmap texture() const
Returns the custom brush pattern, or a null pixmap if no custom brush pattern has been set.
The QColor class provides colors based on RGB, HSV or CMYK values.
static QColor fromString(QAnyStringView name) noexcept
QString name(NameFormat format=HexRgb) const
bool isValid() const noexcept
Returns true if the color is valid; otherwise returns false.
QString toString() const
Returns a description of the font.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
bool isEmpty() const
Returns true if the key sequence is empty; otherwise returns false.
QString toString(SequenceFormat format=PortableText) const
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QImage toImage() const
Converts the pixmap to a QImage.
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
Q_CONSTRUCTOR_FUNCTION(initializeStandardUserDefaults)
void qRegisterGuiVariant()
GLsizei GLsizei GLchar * source