Solved ComboBox Qml delete an object
-
Hello everybody !
I am working on a Qml program , i added a ComboBox but i want the user to be able to delete an item. I cannot find anything on that in the Qml ComboBox documentation.
I would like something like remove() in the Qt Widget Combobox.So is it possible to do that in Qml ?
thank you !
-
@petitDoigtPuissant
ComboBox element has a delegate property.
This lets you easily change the appearance of the items and also add a remove-button or even swipe gesture etc. -
Ok thank you i will check that!
-
@petitDoigtPuissant When items are added to/removed from the model the view (combo box popup list) is updated automatically. Get familiar with the QML Model/View system if you haven't done it already, it's central to QML Quick.
-
@Eeli-K said in ComboBox Qml delete an object:
@petitDoigtPuissant When items are added to/removed from the model the view (combo box popup list) is updated automatically. Get familiar with the QML Model/View system if you haven't done it already, it's central to QML Quick.
Hmm yes but my question was how to remove the items
-
Ok everything is working ! i used the delegate documentation and this example to figure it out thanks everyone !