[Solved] Exporting QWidgets to QML?
I’ve got an application which uses QWidgets.
Some special functionality is already implemented, for example I created an eventFilter that the enter key also changes the focus. I would also like to continue to use the validators, the setPlaceHolderText, setInputMask, etc. of the QLineEdit and some other built-in functionality of the QWidgets. Also, I could not find something similar to the QCombobox in QML.
Now I would like to add animations to my application. Is it possible to “export” the QWidgets to QML? Or how can I reuse my existing code when I would like to switch to QML?
I’m very new to QML, therefore I’m sorry if the answer is obvious. I would be really happy if you could recommend me some tutorials regarding this topic. Thank you!
Thank you, I already heard that QGraphicsProxyWidget should be avoided at the Qt Dev Days. Is there an alternative for it if I want to create my own components?
I saw that the native Qt Quick elements are derived from QDeclarativeItem. Maybe this helps when creating my own QML elements, but e.g. the QComboBox seems to be quite a lot of effort.