xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
静态 Public 成员函数 | 静态 Public 属性
QVariant类 参考

静态 Public 成员函数

静态 Public 属性

详细描述

在文件 QVariant.xcsm2 行定义.

成员函数说明

◆ setBytes()

static void setBytes ( byte []  b,
int  p,
int  v 
)
static

在文件 QVariant.xcsm67 行定义.

67 {
68 b[0 + p] = v & 0xff;
69 b[1 + p] = (v >> 8) & 0xff;
70 b[2 + p] = (v >> 16) & 0xff;
71 b[3 + p] = (v >> 24) & 0xff;
72 }

◆ toArray() [1/3]

static byte [] toArray ( QPoint  pt)
static

在文件 QVariant.xcsm74 行定义.

74 {
75 byte [] p = new byte[10];
76 p[0] = 1;
77 p[1] = Point;
78 setBytes(p, 2, pt.x);
79 setBytes(p, 6, pt.y);
80 return p;
81 }
static void setBytes(byte [] b, int p, int v)
Definition QVariant.xcsm:67
static const int Point
Definition QVariant.xcsm:29

◆ toArray() [2/3]

static byte [] toArray ( QRect  pt)
static

在文件 QVariant.xcsm112 行定义.

112 {
113 byte [] p = new byte[18];
114 p[0] = 1;
115 p[1] = Rect;
116 setBytes(p, 2, pt.left);
117 setBytes(p, 6, pt.top);
118 setBytes(p, 10, pt.right);
119 setBytes(p, 14, pt.bottom);
120 return p;
121 }
static const int Rect
Definition QVariant.xcsm:23

◆ toArray() [3/3]

static byte [] toArray ( QSize  pt)
static

在文件 QVariant.xcsm83 行定义.

83 {
84 byte [] p = new byte[10];
85 p[0] = 1;
86 p[1] = Size;
87 setBytes(p, 2, pt.cx);
88 setBytes(p, 6, pt.cy);
89 return p;
90 }
static const int Size
Definition QVariant.xcsm:25

结构体成员变量说明

◆ BitArray

const int BitArray = 13
static

在文件 QVariant.xcsm17 行定义.

◆ Bitmap

const int Bitmap = 73
static

在文件 QVariant.xcsm47 行定义.

◆ Bool

const int Bool = 1
static

在文件 QVariant.xcsm5 行定义.

◆ Brush

const int Brush = 66
static

在文件 QVariant.xcsm41 行定义.

◆ ByteArray

const int ByteArray = 12
static

在文件 QVariant.xcsm16 行定义.

◆ Char

const int Char = 7
static

在文件 QVariant.xcsm11 行定义.

◆ Color

const int Color = 67
static

在文件 QVariant.xcsm42 行定义.

◆ Cursor

const int Cursor = 74
static

在文件 QVariant.xcsm48 行定义.

◆ Date

const int Date = 14
static

在文件 QVariant.xcsm18 行定义.

◆ DateTime

const int DateTime = 16
static

在文件 QVariant.xcsm20 行定义.

◆ Double

const int Double = 6
static

在文件 QVariant.xcsm10 行定义.

◆ EasingCurve

const int EasingCurve = 29
static

在文件 QVariant.xcsm34 行定义.

◆ Font

const int Font = 64
static

在文件 QVariant.xcsm39 行定义.

◆ Hash

const int Hash = 28
static

在文件 QVariant.xcsm33 行定义.

◆ Icon

const int Icon = 69
static

在文件 QVariant.xcsm61 行定义.

◆ Image

const int Image = 70
static

在文件 QVariant.xcsm44 行定义.

◆ Int

const int Int = 2
static

在文件 QVariant.xcsm6 行定义.

◆ Invalid

const int Invalid = 0
static

在文件 QVariant.xcsm4 行定义.

◆ KeySequence

const int KeySequence = 75
static

在文件 QVariant.xcsm49 行定义.

◆ LastCoreType

const int LastCoreType = 51
static

在文件 QVariant.xcsm38 行定义.

◆ LastGuiType

const int LastGuiType = 86
static

在文件 QVariant.xcsm62 行定义.

◆ LastType

const int LastType = 0xffffffff
static

在文件 QVariant.xcsm65 行定义.

◆ Line

const int Line = 23
static

在文件 QVariant.xcsm27 行定义.

◆ LineF

const int LineF = 24
static

在文件 QVariant.xcsm28 行定义.

◆ List

const int List = 9
static

在文件 QVariant.xcsm13 行定义.

◆ Locale

const int Locale = 18
static

在文件 QVariant.xcsm22 行定义.

◆ LongLong

const int LongLong = 4
static

在文件 QVariant.xcsm8 行定义.

◆ Map

const int Map = 8
static

在文件 QVariant.xcsm12 行定义.

◆ Matrix

const int Matrix = 79
static

在文件 QVariant.xcsm53 行定义.

◆ Matrix4x4

const int Matrix4x4 = 81
static

在文件 QVariant.xcsm55 行定义.

◆ ModelIndex

const int ModelIndex = 42
static

在文件 QVariant.xcsm36 行定义.

◆ Palette

const int Palette = 68
static

在文件 QVariant.xcsm43 行定义.

◆ Pen

const int Pen = 76
static

在文件 QVariant.xcsm50 行定义.

◆ PersistentModelIndex

const int PersistentModelIndex = 50
static

在文件 QVariant.xcsm37 行定义.

◆ Pixmap

const int Pixmap = 65
static

在文件 QVariant.xcsm40 行定义.

◆ Point

const int Point = 25
static

在文件 QVariant.xcsm29 行定义.

◆ PointF

const int PointF = 26
static

在文件 QVariant.xcsm30 行定义.

◆ Polygon

const int Polygon = 71
static

在文件 QVariant.xcsm45 行定义.

◆ PolygonF

const int PolygonF = 86
static

在文件 QVariant.xcsm60 行定义.

◆ Quaternion

const int Quaternion = 85
static

在文件 QVariant.xcsm59 行定义.

◆ Rect

const int Rect = 19
static

在文件 QVariant.xcsm23 行定义.

◆ RectF

const int RectF = 20
static

在文件 QVariant.xcsm24 行定义.

◆ RegExp

const int RegExp = 27
static

在文件 QVariant.xcsm31 行定义.

◆ Region

const int Region = 72
static

在文件 QVariant.xcsm46 行定义.

◆ RegularExpression

const int RegularExpression = 44
static

在文件 QVariant.xcsm32 行定义.

◆ Size

const int Size = 21
static

在文件 QVariant.xcsm25 行定义.

◆ SizeF

const int SizeF = 22
static

在文件 QVariant.xcsm26 行定义.

◆ SizePolicy

const int SizePolicy = 121
static

在文件 QVariant.xcsm63 行定义.

◆ String

const int String = 10
static

在文件 QVariant.xcsm14 行定义.

◆ StringList

const int StringList = 11
static

在文件 QVariant.xcsm15 行定义.

◆ TextFormat

const int TextFormat = 78
static

在文件 QVariant.xcsm52 行定义.

◆ TextLength

const int TextLength = 77
static

在文件 QVariant.xcsm51 行定义.

◆ Time

const int Time = 15
static

在文件 QVariant.xcsm19 行定义.

◆ Transform

const int Transform = 80
static

在文件 QVariant.xcsm54 行定义.

◆ UInt

const int UInt = 3
static

在文件 QVariant.xcsm7 行定义.

◆ ULongLong

const int ULongLong = 5
static

在文件 QVariant.xcsm9 行定义.

◆ Url

const int Url = 17
static

在文件 QVariant.xcsm21 行定义.

◆ UserType

const int UserType = 1024
static

在文件 QVariant.xcsm64 行定义.

◆ Uuid

const int Uuid = 30
static

在文件 QVariant.xcsm35 行定义.

◆ Vector2D

const int Vector2D = 82
static

在文件 QVariant.xcsm56 行定义.

◆ Vector3D

const int Vector3D = 83
static

在文件 QVariant.xcsm57 行定义.

◆ Vector4D

const int Vector4D = 84
static

在文件 QVariant.xcsm58 行定义.