Item QML Type

This value type represents a BrickLink item. More...

Import Statement: import BrickLink 1.0

Properties

Methods

Detailed Description

Each item in the BrickLink catalog is available as an Item object.

You cannot create Item objects yourself, but you can retrieve an Item object given the id via BrickLink::item().

See https://www.bricklink.com/catalog.asp

Property Documentation

alternateIds : list<string>

Returns a list of all alternate BrickLink ids registered for this item.


category : Category [read-only]

The BrickLink category of this item.


defaultColor : Color [read-only]

Returns the default color used by BrickLink to display a large picture for this item.


hasInventory : bool [read-only]

Returns true if a valid inventory exists for this item, or false otherwise.


id : int [read-only]

The BrickLink id of this item.


isNull : bool [read-only]

Returns whether this Item is null. Since this type is a value wrapper around a C++ object, we cannot use the normal JavaScript null notation.


itemType : ItemType [read-only]

The BrickLink item type of this item.


knownColors : list<Color> [read-only]

Returns a list of Color objects, containing all the colors the item is known to exist in.

Note: An item might still exist in more colors than returned here: BrickStore is deriving this data by looking at all the known inventories and PCCs (part-color-codes).


name : string [read-only]

The BrickLink name of this item.


weight : real [read-only]

Returns the weight of this item in gram.


yearReleased : date [read-only]

Returns the year this item was first released.


Method Documentation

bool hasKnownColor(Color color)

Returns true if this item is known to exist in the given color, or false otherwise.

See also knownColors.


© 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.