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 Binding Properties Graphically
QtWS25 Last Chance

Qt Quick Designer Binding Properties Graphically

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 1 Posters 608 Views
  • 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.
  • S Offline
    S Offline
    sTirkas
    wrote on last edited by
    #1

    I'm currently trying to bind to certain custom registered enumerations graphically in the designer pane, the point being to not have to go to the text editor and add imports/bind properties there and be able to do everything from the Form Editor. The binding editor only auto fills values for the first form I open in Design mode since initially opening the Creator itself.

    I tested this with QtCreator 4.5.0 msvc2015 32bit

    For the sake of reproducing the issue all you really need is a new empty qt quick application with two Qt Quick UI forms added to it which you can add from the Creator by right clicking the project and clicking Add New -> Qt -> Qt Quick UI File.

    You don't need to register your own backend types or anything. The new UI Files will automatically import Qt Quick and you can just try to bind to a property of something in that plugin. In the images below I try to bind to an Image property.

    0_1536770094186_BindingProperty.png

    Typing "Image." provides me with all the Image properties available to choose from.
    0_1536770775900_BindingAutofill.png

    If I switch to a different form and try to edit the binding and type "Image." it wont show me any of the available options this time. I can however close the Creator, reopen it, and open the second form before the first and the second form will be able to use the autofilled info but the first form no longer will. It seems the autofilling only works with the first form opened in Design mode.

    From the Text Editor rather than the Form Editor auto filled values are always available from within the Text Editor pane. However even with the Text Editor open the Properties pane on the right still cant auto fill values if you're not editing the first form that was opened in Designer mode.

    This seems like something that should be possible from any form. Is this happening to anyone else? Anyone that can try it with a different QtCreator version? I'll give it a shot myself on a different version when I get out of work. I can't seem to find anything online about it.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sTirkas
      wrote on last edited by
      #3

      Looks like this works fine now with QtCreator 4.9.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sTirkas
        wrote on last edited by
        #2

        Managed to find a PC at work that had Creator 4.0.1 which did not autofill values in the binding editor at all.

        I assume this is something I just can't take advantage of (yet?). Not a big deal in the end, I'll just do my binding in the Text Editor. Really I'm just curious if this is meant to be possible.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sTirkas
          wrote on last edited by
          #3

          Looks like this works fine now with QtCreator 4.9.

          1 Reply Last reply
          1

          • Login

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