Qt Mobility Reference Documentation

QML GalleryItem Element

The GalleryItem element allows you to request information about a single item from a gallery More...

Properties

Signals

Methods

Detailed Description

This element is part of the QtMobility.gallery 1.0 module.

See also GalleryQueryModel and GalleryQueryCount.


Property Documentation

available : bool

This property holds whether the meta-data of an item is available.


read-onlycurrentProgress : int

This property holds the current progress value.


This property holds the gallery an item should be requested from.


item : variant

This property holds the id of the item to return information about.


itemType : string

This property holds the type of a gallery item.


itemUrl : url

This property holds the URL of a gallery item.


live : bool

This property holds whether a request should refresh its results automatically.


read-onlymaximumProgress : int

This property holds the maximum progress value.


metaData : object

This property holds the meta-data of a gallery item.


properties : QStringList

This property holds the item properties a request should return values for.


reading : bool

This property holds whether the meta-data of an item is currently being read.


read-onlyresult : enum

The property holds the result of an item request. It can be one of:

  • NoResult The request is still executing.
  • Succeeded The request finished successfully.
  • Cancelled The request was cancelled.
  • NoGallery No gallery was specified.
  • NotSupported Item requests are not supported by the gallery.
  • ConnectionError The request failed due to a connection error.
  • InvalidItemError The request failed because the value of item is not a valid item ID.

state : enum

This property holds the state of an item request. It can be one of:

  • Inactive The request has finished.
  • Active The request is currently executing.
  • Cancelling The request has been cancelled, but has yet reached the Inactive state.
  • Idle The request has finished and is monitoring its result set for changes.

writing : bool

This property holds whether the meta-data of an item is currently being written.


Signal Documentation

GalleryItem::onCancelled ()

Signals that a request was cancelled.


GalleryItem::onFailed ( error )

Signals that a request failed with the given error.


GalleryItem::onFinished ( result )

Signals that a request finished with the given result.


GalleryItem::onSucceeded ()

Signals that a request has finished successfully.


Method Documentation

GalleryItem::cancel ()

Cancels an executing request.


GalleryItem::clear ()

Clears the results of a request.


GalleryItem::reload ()

Re-queries the gallery.



Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0