-2

I'd like to know the arguments for the automatically-generated QML function onRowsAboutToBeRemoved (of the ListModel component.) Specifically, I need to know what the index value is called so I can do operations on the row about to be removed before the action takes place.

1
  • When in doubt, look for the sources, here it is. Mind that if you are using WorkerScript the behaviour is bugged.
    – BaCaRoZzo
    Commented Jan 31, 2017 at 9:00

1 Answer 1

0

A QML signal handler method name is basically the signal name with "on" prefixed and the first letter of the signal name uppercased.

In your case that would lead us to a signal named rowsAboutToBeRemoved

You will find its documentation in the base class for Qt models: http://doc.qt.io/qt-5/qabstractitemmodel.html#rowsAboutToBeRemoved

The argument names are therefore parent, first and last

Not the answer you're looking for? Browse other questions tagged or ask your own question.