Important: Please read the Qt Code of Conduct -

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