型の変換

QString 、QPoint 、QImage など、Qt の基本的なデータ型の多くは、ネイティブの対応する型との間の変換機能を提供しています。

以下のリストは、利用可能なすべての型変換を列挙したものです:

QByteArray::fromCFData()

QByteArray::fromEcmaUint8Array()

QByteArray::fromNSData()

NSDataデータのコピーを含む新しいQByteArrayを生成します

QByteArray::fromRawCFData()

CFDataデータのバイトを使用するQByteArrayを生成します

QByteArray::fromRawNSData()

NSDataデータのバイトを使用するQByteArrayを生成します

QDateTime::fromCFDate()

CFDateの日付のコピーを含む新しい QDateTime を生成します

QDateTime::fromNSDate()

NSDateの日付のコピーを含む新しいQDateTimeを生成します

QImage::fromHBITMAP()

指定された hbitmap と同等の QImage を返します

QImage::fromHICON()

指定されたアイコンと同等の QImage を返します

QPointF::fromCGPoint()

CGPoint point から QRectF を作成します

QRectF::fromCGRect()

CGRect rect から QRectF を作成します

QRectF::fromDOMRect()

QSizeF::fromCGSize()

size から QSizeF を作成します

QString::fromCFString()

文字列 CFString のコピーを含む新しい QString を生成します

QString::fromEcmaString()

QString::fromNSString()

文字列 NSString のコピーを含む新しい QString を生成します

QTimeZone::fromCFTimeZone()

CFTimeZone timeZone のコピーを含む新しい QTimeZone を生成します

QTimeZone::fromNSTimeZone()

NSTimeZone timeZone のコピーを含む新しい QTimeZone を生成します

QUrl::fromCFURL()

CFURLのurlのコピーを含む新しいQUrlを生成します

QUrl::fromNSURL()

NSURL `url` のコピーを含む新しい QUrl を生成します

QUuid::fromCFUUID()

CFUUID の uuid のコピーを含む新しい QUuid を作成します

QUuid::fromNSUUID()

uuid `NSUUID` のコピーを含む新しい `QUuid` を生成します

QByteArray::toEcmaUint8Array()

QByteArray::toCFData()

QByteArray から CFData を作成します

QByteArray::toRawCFData()

QByteArrayのバイトデータを使用するCFDataを生成します

QDateTime::toCFDate()

QDateTime から CFDate を作成します

QStringView::toCFString()

この QStringView から CFString を作成します

QString::toCFString()

QString から CFString を作成します

QTimeZone::toCFTimeZone()

QTimeZone から CFTimeZone を作成します

QUrl::toCFURL()

QUrl から CFURL を作成します

QUuid::toCFUUID()

QUuid から CFUUID を作成します

QImage::toCGImage()

QPointF::toCGPoint()

QPointF から CGPoint を作成します

QPoint::toCGPoint()

QPoint から CGPoint を作成する

QRectF::toCGRect()

QRectF から CGRect を作成します

QRect::toCGRect()

QRect から CGRect を作成する

QSizeF::toCGSize()

QSizeF から CGSize を作成します

QSize::toCGSize()

QSizeF から CGSize を作成する

QImage::toHBITMAP()

QImageに相当するHBITMAPを作成します

QImage::toHICON()

マスク mask を適用して、QPixmap に対応する HICON を作成します

QByteArray::toNSData()

QByteArray から NSData を作成します

QByteArray::toRawNSData()

QByteArrayのバイトデータを使用するNSDataを生成します

QDateTime::toNSDate()

QDateTime から NSDate を作成します

QString::toNSString()

QString から NSString を作成します

QStringView::toNSString()

この QStringView から NSString を作成します

QTimeZone::toNSTimeZone()

QTimeZone から NSTimeZone を作成します

QUrl::toNSURL()

QUrl から NSURL を作成します

QUuid::toNSUUID()

QUuid から NSUUID を作成します

QRectF::toDOMRect()

QString::toEcmaString()

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.