Giter VIP home page Giter VIP logo

Comments (2)

dridk avatar dridk commented on August 16, 2024 1

from qjsonmodel.

yungchunw avatar yungchunw commented on August 16, 2024

You should implement the function and use beginRemove and beginInsert from Qt framework. Le jeu. 4 juil. 2019 à 04:37, Young-Chun Wang [email protected] a écrit :

HI, I have a qtreeview and set your model But i want to remove & insert node. How can i do fot this issues? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#15?email_source=notifications&email_token=AAOSSF3UVMKQPU4K6MHXCE3P5VO73A5CNFSM4H5QMI5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5IR7QA>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOSSF3MQDDDQMNIRE33KPDP5VO73ANCNFSM4H5QMI5A .

okay, So I should define the function like this?

    def removeRows(self, position, rows=1, index=QModelIndex()):
        self.beginRemoveRows(QModelIndex(), position, position + rows - 1)
        self.endRemoveRows()
        return True

from qjsonmodel.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.