Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Variant properties in Design mode
Forum Updated to NodeBB v4.3 + New Features

Variant properties in Design mode

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 536 Views 1 Watching
  • 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 Offline
    A Offline
    alexander.merkel
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved