Qt Mobility Reference Documentation

QML ValueSpaceSubscriber Element

The ValueSpaceSubscriber elements accesses a single Value Space value. More...

ValueSpaceSubscriber instantiates the C++ class QValueSpaceSubscriber

  • List of all members, including inherited members
  • Properties

    Detailed Description

    The ValueSpaceSubscriber element is part of the QtMobility.publishsubscribe 1.1 module.

    The ValueSpaceSubscriber element enables the creation of QML bindings that use values stored in the Value Space. The QML binding is automatically reevaluated when the value in the Value Space changes.

    Each ValueSpaceSubscriber element represents a single value or path in the Value Space. The path is set using the path property.

     ValueSpaceSubscriber {
         id: nowPlaying
         path: "/applications/mediaplayer/now-playing"
     }

    The value is accessed using the value property.

     Text {
         text: nowPlaying.value
     }

    Property Documentation

    path : QString

    This property holds that path that the element accesses.


    read-onlyvalue : QVariant

    This property hold the value of the Value Space value.


    X

    Thank you for giving your feedback.

    Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.