ItemType QML Type
This value type represents a BrickLink item type. More...
Import Statement: | import BrickLink 1.0 |
Properties
- categories : list<Category>
- hasColors : bool
- hasInventories : bool
- hasSubConditions : bool
- hasWeight : bool
- id : int
- isNull : bool
- name : string
- pictureSize : size
Detailed Description
Each item type in the BrickLink catalog is available as an ItemType object.
You cannot create ItemType objects yourself, but you can retrieve an ItemType object given the id via BrickLink::itemType(). Each Item also has a read-only property Item::itemType.
The currently available item types are
Id | Name |
---|---|
B | Book |
C | Catalog |
G | Gear |
I | Instruction |
M | Minifigure |
O | Original Box |
P | Part |
S | Set |
Property Documentation
categories : list<Category> |
A list of Category objects describing all the categories that are referencing at least one item of the given item type.
hasColors : bool |
Returns true
if items under this type can have colors, or false
otherwise.
hasInventories : bool |
Returns true
if items under this type can have inventories, or false
otherwise.
hasSubConditions : bool |
Returns true
if items under this type can have sub-conditions, or false
otherwise.
hasWeight : bool |
Returns true
if items under this type can have weights, or false
otherwise.
id : int |
The BrickLink id of this item type.
isNull : bool |
Returns whether this ItemType is null
. Since this type is a value wrapper around a C++ object, we cannot use the normal JavaScript null
notation.
name : string |
The BrickLink name of this item type.
pictureSize : size |
The default size and aspect ratio for item pictures of this type.
© 2004-2025 Robert Griebl. 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. All trademarks are property of their respective owners.