Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. about QAbstractItemModel::beginInsertRows
QtWS25 Last Chance

about QAbstractItemModel::beginInsertRows

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 985 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d4nmu
    wrote on last edited by d4nmu
    #1

    I encountered a problem when I used "QAbstractItemModel::beginInsertRows".
    kpWIl4.png
    This is my stack at the time. kpWo6J.png
    When I debugged, I found the problem happening here. kpWfYT.png
    This is the variable at the time. kpW5pF.png
    kpWhfU.png
    This is part of the relevant code. kpWWkV.png
    Another strange thing is that I am the second call to make an error. Can someone help me?

    raven-worxR 1 Reply Last reply
    0
    • D d4nmu

      I encountered a problem when I used "QAbstractItemModel::beginInsertRows".
      kpWIl4.png
      This is my stack at the time. kpWo6J.png
      When I debugged, I found the problem happening here. kpWfYT.png
      This is the variable at the time. kpW5pF.png
      kpWhfU.png
      This is part of the relevant code. kpWWkV.png
      Another strange thing is that I am the second call to make an error. Can someone help me?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @d4nmu said in about QAbstractItemModel::beginInsertRows:

      I encountered a problem when I used "QAbstractItemModel::beginInsertRows".

      you should post the actual call to beginInsertRows() rather than parts of the Qt source code...

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • D Offline
        D Offline
        d4nmu
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • D Offline
          D Offline
          d4nmu
          wrote on last edited by
          #4

          Thank you for your reply, I have solved my problem. Because I used creatIndex(0,0,point) in the previous code to create the index of the root node of the model. After changing to QModelIndex(), the program works fine.

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            You can move the issue to Solved also.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved