Qt Quick Designer Binding Properties Graphically
-
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.
Typing "Image." provides me with all the Image properties available to choose from.
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.
-
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.