Notation used in Ruby API documentation
Module: QtCore
Description: This class represents the QVariant::Type enum
This class is equivalent to the class QVariant::Type
new QVariant_Type ptr | new | (int i) | Creates an enum from an integer value |
new QVariant_Type ptr | new | (string s) | Creates an enum from a string value |
[const] | bool | != | (const QVariant_Type other) | Compares two enums for inequality |
[const] | bool | != | (int other) | Compares an enum with an integer for inequality |
[const] | bool | < | (const QVariant_Type other) | Returns true if the first enum is less (in the enum symbol order) than the second |
[const] | bool | < | (int other) | Returns true if the enum is less (in the enum symbol order) than the integer value |
[const] | bool | == | (const QVariant_Type other) | Compares two enums |
[const] | bool | == | (int other) | Compares an enum with an integer value |
[const] | QVariant_Type ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
void | assign | (const QVariant_Type other) | Assigns another object to self | |
[const] | new QVariant_Type ptr | dup | Creates a copy of self | |
[const] | int | hash | Gets the hash value from the enum | |
[const] | string | inspect | Converts an enum to a visual string | |
[const] | int | to_i | Gets the integer value from the enum | |
[const] | string | to_s | Gets the symbolic string from an enum | |
[const] | QVariant_QFlags_Type | | | (const QVariant_Type other) | Creates a flag set by combining the two flags |
[const] | QVariant_QFlags_Type | | | (const QVariant_QFlags_Type other) | Combines the flag and the flag set |
[static,const] | QVariant_Type | BitArray | Enum constant QVariant::BitArray | |
[static,const] | QVariant_Type | Bitmap | Enum constant QVariant::Bitmap | |
[static,const] | QVariant_Type | Bool | Enum constant QVariant::Bool | |
[static,const] | QVariant_Type | Brush | Enum constant QVariant::Brush | |
[static,const] | QVariant_Type | ByteArray | Enum constant QVariant::ByteArray | |
[static,const] | QVariant_Type | Char | Enum constant QVariant::Char | |
[static,const] | QVariant_Type | Color | Enum constant QVariant::Color | |
[static,const] | QVariant_Type | Cursor | Enum constant QVariant::Cursor | |
[static,const] | QVariant_Type | Date | Enum constant QVariant::Date | |
[static,const] | QVariant_Type | DateTime | Enum constant QVariant::DateTime | |
[static,const] | QVariant_Type | Double | Enum constant QVariant::Double | |
[static,const] | QVariant_Type | Font | Enum constant QVariant::Font | |
[static,const] | QVariant_Type | Hash | Enum constant QVariant::Hash | |
[static,const] | QVariant_Type | Icon | Enum constant QVariant::Icon | |
[static,const] | QVariant_Type | Image | Enum constant QVariant::Image | |
[static,const] | QVariant_Type | Int | Enum constant QVariant::Int | |
[static,const] | QVariant_Type | Invalid | Enum constant QVariant::Invalid | |
[static,const] | QVariant_Type | KeySequence | Enum constant QVariant::KeySequence | |
[static,const] | QVariant_Type | LastCoreType | Enum constant QVariant::LastCoreType | |
[static,const] | QVariant_Type | LastGuiType | Enum constant QVariant::LastGuiType | |
[static,const] | QVariant_Type | LastType | Enum constant QVariant::LastType | |
[static,const] | QVariant_Type | Line | Enum constant QVariant::Line | |
[static,const] | QVariant_Type | LineF | Enum constant QVariant::LineF | |
[static,const] | QVariant_Type | List | Enum constant QVariant::List | |
[static,const] | QVariant_Type | Locale | Enum constant QVariant::Locale | |
[static,const] | QVariant_Type | LongLong | Enum constant QVariant::LongLong | |
[static,const] | QVariant_Type | Map | Enum constant QVariant::Map | |
[static,const] | QVariant_Type | Matrix | Enum constant QVariant::Matrix | |
[static,const] | QVariant_Type | Matrix4x4 | Enum constant QVariant::Matrix4x4 | |
[static,const] | QVariant_Type | Palette | Enum constant QVariant::Palette | |
[static,const] | QVariant_Type | Pen | Enum constant QVariant::Pen | |
[static,const] | QVariant_Type | Pixmap | Enum constant QVariant::Pixmap | |
[static,const] | QVariant_Type | Point | Enum constant QVariant::Point | |
[static,const] | QVariant_Type | PointF | Enum constant QVariant::PointF | |
[static,const] | QVariant_Type | Polygon | Enum constant QVariant::Polygon | |
[static,const] | QVariant_Type | Quaternion | Enum constant QVariant::Quaternion | |
[static,const] | QVariant_Type | Rect | Enum constant QVariant::Rect | |
[static,const] | QVariant_Type | RectF | Enum constant QVariant::RectF | |
[static,const] | QVariant_Type | RegExp | Enum constant QVariant::RegExp | |
[static,const] | QVariant_Type | Region | Enum constant QVariant::Region | |
[static,const] | QVariant_Type | Size | Enum constant QVariant::Size | |
[static,const] | QVariant_Type | SizeF | Enum constant QVariant::SizeF | |
[static,const] | QVariant_Type | SizePolicy | Enum constant QVariant::SizePolicy | |
[static,const] | QVariant_Type | String | Enum constant QVariant::String | |
[static,const] | QVariant_Type | StringList | Enum constant QVariant::StringList | |
[static,const] | QVariant_Type | TextFormat | Enum constant QVariant::TextFormat | |
[static,const] | QVariant_Type | TextLength | Enum constant QVariant::TextLength | |
[static,const] | QVariant_Type | Time | Enum constant QVariant::Time | |
[static,const] | QVariant_Type | Transform | Enum constant QVariant::Transform | |
[static,const] | QVariant_Type | UInt | Enum constant QVariant::UInt | |
[static,const] | QVariant_Type | ULongLong | Enum constant QVariant::ULongLong | |
[static,const] | QVariant_Type | Url | Enum constant QVariant::Url | |
[static,const] | QVariant_Type | UserType | Enum constant QVariant::UserType | |
[static,const] | QVariant_Type | Vector2D | Enum constant QVariant::Vector2D | |
[static,const] | QVariant_Type | Vector3D | Enum constant QVariant::Vector3D | |
[static,const] | QVariant_Type | Vector4D | Enum constant QVariant::Vector4D |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
!= | (1) Signature: [const] bool != (const QVariant_Type other) Description: Compares two enums for inequality |
(2) Signature: [const] bool != (int other) Description: Compares an enum with an integer for inequality | |
< | (1) Signature: [const] bool < (const QVariant_Type other) Description: Returns true if the first enum is less (in the enum symbol order) than the second |
(2) Signature: [const] bool < (int other) Description: Returns true if the enum is less (in the enum symbol order) than the integer value | |
== | (1) Signature: [const] bool == (const QVariant_Type other) Description: Compares two enums |
(2) Signature: [const] bool == (int other) Description: Compares an enum with an integer value | |
BitArray | Signature: [static,const] QVariant_Type BitArray Description: Enum constant QVariant::BitArray Python specific notes: |
Bitmap | Signature: [static,const] QVariant_Type Bitmap Description: Enum constant QVariant::Bitmap Python specific notes: |
Bool | Signature: [static,const] QVariant_Type Bool Description: Enum constant QVariant::Bool Python specific notes: |
Brush | Signature: [static,const] QVariant_Type Brush Description: Enum constant QVariant::Brush Python specific notes: |
ByteArray | Signature: [static,const] QVariant_Type ByteArray Description: Enum constant QVariant::ByteArray Python specific notes: |
Char | Signature: [static,const] QVariant_Type Char Description: Enum constant QVariant::Char Python specific notes: |
Color | Signature: [static,const] QVariant_Type Color Description: Enum constant QVariant::Color Python specific notes: |
Cursor | Signature: [static,const] QVariant_Type Cursor Description: Enum constant QVariant::Cursor Python specific notes: |
Date | Signature: [static,const] QVariant_Type Date Description: Enum constant QVariant::Date Python specific notes: |
DateTime | Signature: [static,const] QVariant_Type DateTime Description: Enum constant QVariant::DateTime Python specific notes: |
Double | Signature: [static,const] QVariant_Type Double Description: Enum constant QVariant::Double Python specific notes: |
Font | Signature: [static,const] QVariant_Type Font Description: Enum constant QVariant::Font Python specific notes: |
Hash | Signature: [static,const] QVariant_Type Hash Description: Enum constant QVariant::Hash Python specific notes: |
Icon | Signature: [static,const] QVariant_Type Icon Description: Enum constant QVariant::Icon Python specific notes: |
Image | Signature: [static,const] QVariant_Type Image Description: Enum constant QVariant::Image Python specific notes: |
Int | Signature: [static,const] QVariant_Type Int Description: Enum constant QVariant::Int Python specific notes: |
Invalid | Signature: [static,const] QVariant_Type Invalid Description: Enum constant QVariant::Invalid Python specific notes: |
KeySequence | Signature: [static,const] QVariant_Type KeySequence Description: Enum constant QVariant::KeySequence Python specific notes: |
LastCoreType | Signature: [static,const] QVariant_Type LastCoreType Description: Enum constant QVariant::LastCoreType Python specific notes: |
LastGuiType | Signature: [static,const] QVariant_Type LastGuiType Description: Enum constant QVariant::LastGuiType Python specific notes: |
LastType | Signature: [static,const] QVariant_Type LastType Description: Enum constant QVariant::LastType Python specific notes: |
Line | Signature: [static,const] QVariant_Type Line Description: Enum constant QVariant::Line Python specific notes: |
LineF | Signature: [static,const] QVariant_Type LineF Description: Enum constant QVariant::LineF Python specific notes: |
List | Signature: [static,const] QVariant_Type List Description: Enum constant QVariant::List Python specific notes: |
Locale | Signature: [static,const] QVariant_Type Locale Description: Enum constant QVariant::Locale Python specific notes: |
LongLong | Signature: [static,const] QVariant_Type LongLong Description: Enum constant QVariant::LongLong Python specific notes: |
Map | Signature: [static,const] QVariant_Type Map Description: Enum constant QVariant::Map Python specific notes: |
Matrix | Signature: [static,const] QVariant_Type Matrix Description: Enum constant QVariant::Matrix Python specific notes: |
Matrix4x4 | Signature: [static,const] QVariant_Type Matrix4x4 Description: Enum constant QVariant::Matrix4x4 Python specific notes: |
Palette | Signature: [static,const] QVariant_Type Palette Description: Enum constant QVariant::Palette Python specific notes: |
Pen | Signature: [static,const] QVariant_Type Pen Description: Enum constant QVariant::Pen Python specific notes: |
Pixmap | Signature: [static,const] QVariant_Type Pixmap Description: Enum constant QVariant::Pixmap Python specific notes: |
Point | Signature: [static,const] QVariant_Type Point Description: Enum constant QVariant::Point Python specific notes: |
PointF | Signature: [static,const] QVariant_Type PointF Description: Enum constant QVariant::PointF Python specific notes: |
Polygon | Signature: [static,const] QVariant_Type Polygon Description: Enum constant QVariant::Polygon Python specific notes: |
Quaternion | Signature: [static,const] QVariant_Type Quaternion Description: Enum constant QVariant::Quaternion Python specific notes: |
Rect | Signature: [static,const] QVariant_Type Rect Description: Enum constant QVariant::Rect Python specific notes: |
RectF | Signature: [static,const] QVariant_Type RectF Description: Enum constant QVariant::RectF Python specific notes: |
RegExp | Signature: [static,const] QVariant_Type RegExp Description: Enum constant QVariant::RegExp Python specific notes: |
Region | Signature: [static,const] QVariant_Type Region Description: Enum constant QVariant::Region Python specific notes: |
Size | Signature: [static,const] QVariant_Type Size Description: Enum constant QVariant::Size Python specific notes: |
SizeF | Signature: [static,const] QVariant_Type SizeF Description: Enum constant QVariant::SizeF Python specific notes: |
SizePolicy | Signature: [static,const] QVariant_Type SizePolicy Description: Enum constant QVariant::SizePolicy Python specific notes: |
String | Signature: [static,const] QVariant_Type String Description: Enum constant QVariant::String Python specific notes: |
StringList | Signature: [static,const] QVariant_Type StringList Description: Enum constant QVariant::StringList Python specific notes: |
TextFormat | Signature: [static,const] QVariant_Type TextFormat Description: Enum constant QVariant::TextFormat Python specific notes: |
TextLength | Signature: [static,const] QVariant_Type TextLength Description: Enum constant QVariant::TextLength Python specific notes: |
Time | Signature: [static,const] QVariant_Type Time Description: Enum constant QVariant::Time Python specific notes: |
Transform | Signature: [static,const] QVariant_Type Transform Description: Enum constant QVariant::Transform Python specific notes: |
UInt | Signature: [static,const] QVariant_Type UInt Description: Enum constant QVariant::UInt Python specific notes: |
ULongLong | Signature: [static,const] QVariant_Type ULongLong Description: Enum constant QVariant::ULongLong Python specific notes: |
Url | Signature: [static,const] QVariant_Type Url Description: Enum constant QVariant::Url Python specific notes: |
UserType | Signature: [static,const] QVariant_Type UserType Description: Enum constant QVariant::UserType Python specific notes: |
Vector2D | Signature: [static,const] QVariant_Type Vector2D Description: Enum constant QVariant::Vector2D Python specific notes: |
Vector3D | Signature: [static,const] QVariant_Type Vector3D Description: Enum constant QVariant::Vector3D Python specific notes: |
Vector4D | Signature: [static,const] QVariant_Type Vector4D Description: Enum constant QVariant::Vector4D Python specific notes: |
_const_cast | Signature: [const] QVariant_Type ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
assign | Signature: void assign (const QVariant_Type other) Description: Assigns another object to self |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
dup | Signature: [const] new QVariant_Type ptr dup Description: Creates a copy of self Python specific notes: |
hash | Signature: [const] int hash Description: Gets the hash value from the enum Python specific notes: |
inspect | Signature: [const] string inspect Description: Converts an enum to a visual string Python specific notes: |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
new | (1) Signature: [static] new QVariant_Type ptr new (int i) Description: Creates an enum from an integer value Python specific notes: |
(2) Signature: [static] new QVariant_Type ptr new (string s) Description: Creates an enum from a string value Python specific notes: | |
to_i | Signature: [const] int to_i Description: Gets the integer value from the enum Python specific notes: |
to_s | Signature: [const] string to_s Description: Gets the symbolic string from an enum Python specific notes: |
| | (1) Signature: [const] QVariant_QFlags_Type | (const QVariant_Type other) Description: Creates a flag set by combining the two flags |
(2) Signature: [const] QVariant_QFlags_Type | (const QVariant_QFlags_Type other) Description: Combines the flag and the flag set |