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. Qt Quick designer: how to add or bind property alias?
Forum Updated to NodeBB v4.3 + New Features

Qt Quick designer: how to add or bind property alias?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.4k 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.
  • W Offline
    W Offline
    wqking
    wrote on last edited by
    #1

    @
    Item {
    width: 640
    height: 480

    //#here
    property alias richText: richText
    
    Text {
        id: richText
    }
    

    }
    @

    As the code piece shows, I add richText in the designer, but I can't add the line "#here" in the designer.
    Of course I can edit the source code and add that line there, but it's not good for .ui.qml since the code editor gives warning about "The file should only be edited in Design mode".

    How to add property alias in Qt Quick designer?

    Thanks

    My personal website https://www.kbasm.com/
    My Github https://github.com/wqking

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThomasHartmann
      wrote on last edited by
      #2

      In the "What's New in Qt Creator 3.3" video https://www.youtube.com/watch?v=8IatD3iq6yY you can see how to add such an alias at 1:21.

      The feature is documented here: http://doc-snapshot.qt-project.org/qtcreator-3.3/creator-quick-ui-forms.html

      But currently this is only available in the Professional or Enterprise edition.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wqking
        wrote on last edited by
        #3

        Thanks Thomas, then I can't use it in the community edition. :-(

        My personal website https://www.kbasm.com/
        My Github https://github.com/wqking

        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