Qt 的很多基本数据类型,譬如 QString , QPoint ,或 QImage ,提供到/来自本机等效类型的转换。
以下列表枚举所有可用类型转换:
| Constructs a new QByteArray containing a copy of the CFData data | |
| Constructs a new QByteArray containing a copy of the NSData data | |
| Constructs a QByteArray that uses the bytes of the CFData data | |
| Constructs a QByteArray that uses the bytes of the NSData data | |
| Constructs a new QDateTime containing a copy of the CFDate date | |
| Constructs a new QDateTime containing a copy of the NSDate date | |
| Returns a QImage that is equivalent to the given hbitmap | |
| Returns a QImage that is equivalent to the given icon | |
| 从 CGPoint 点创建 QRectF | |
| 从 CGRect 矩形创建 QRectF | |
| 从尺寸创建 QRectF | |
| Constructs a new QString containing a copy of the string CFString | |
| Constructs a new QString containing a copy of the string NSString | |
| Constructs a new QTimeZone containing a copy of the CFTimeZone timeZone | |
| Constructs a new QTimeZone containing a copy of the NSTimeZone timeZone | |
| Constructs a QUrl containing a copy of the CFURL url | |
| Constructs a QUrl containing a copy of the NSURL url | |
| Constructs a new QUuid containing a copy of the uuid CFUUID | |
| Constructs a new QUuid containing a copy of the uuid NSUUID | |
| 从 QByteArray 创建 CFData | |
| Constructs a CFData that uses the bytes of the QByteArray | |
| Creates a CFDate from a QDateTime | |
| Creates a CFString from this QStringView | |
| Creates a CFString from a QString | |
| Creates a CFTimeZone from a QTimeZone | |
| Creates a CFURL from a QUrl | |
| Creates a CFUUID from a QUuid | |
| Creates a CGImage equivalent to this QImage | |
| Creates a CGPoint from a QPointF | |
| Creates a CGPoint from a QPoint | |
| Creates a CGRect from a QRectF | |
| Creates a CGRect from a QRect | |
| Creates a CGSize from a QSizeF | |
| Creates a CGSize from a QSize | |
| Creates a HBITMAP equivalent of the QImage | |
| Creates a HICON equivalent of the QPixmap, applying the mask mask | |
| Creates a NSData from a QByteArray | |
| Constructs a NSData that uses the bytes of the QByteArray | |
| Creates an NSDate from a QDateTime | |
| Creates a NSString from a QString | |
| Creates an NSString from this QStringView | |
| Creates an NSTimeZone from a QTimeZone | |
| Creates a NSURL from a QUrl | |
| Creates a NSUUID from a QUuid | |