Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Variant properties in Design mode

    QML and Qt Quick
    1
    1
    437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alexander.merkel last edited by

      I intend to use a variant property like:

      @property variant target
      property string changeStateTo@

      and change target in Design mode by "SetExpression".

      In order to change its state later on a button click:
      @onClicked: {
      target.state = changeStateTo
      }@
      This would help to enable a user to build sufficiently complex GUIs in Design mode.

      Unfortunately variants are not editable or even visible in design mode. Does anyone know if this is intended or "workaroudable"?

      I am using QtQuick 1.1 (GUI needs to run on crappy hardware) with QtCreator 2.7.2.

      Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post