Accessing a method of the base class in QML



  • I'm doing something with XmlListModel that requires rewriting get(). How can I access XmlListModel.get() within my own implementation?

    I want to do something like this:

    @
    XmlListModel {
    ...

    function get(index) {
    if (some_condition) {
    return special_answer
    }
    else {
    return baseclass.get(index)
    }
    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.