Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. To Insert Rows in a Table View

To Insert Rows in a Table View

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 4.6k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Revu
    wrote on last edited by
    #1

    Hi,how to insert rows in a tableview at (i,j)?Am confused with using setItemDelegate.

    Every fall is to raise higher than Before.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      setItemDelegate does something completely unrelated. It determines how items are renderend.

      If you are using a table view, you are also using a model. The view just displays that model, but it does not control the data. For that, access the model itself. Perhaps you can tell us what kind of model you are using?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        [quote author="Andre" date="1320060795"]setItemDelegate does something completely unrelated. It determines how items are renderend. [/quote]
        And edited.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          [quote author="Gerolf" date="1320087561"]
          [quote author="Andre" date="1320060795"]setItemDelegate does something completely unrelated. It determines how items are renderend. [/quote]
          And edited.

          [/quote]
          Yeah, but I did not want to complicate things further :-)

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Revu
            wrote on last edited by
            #5

            Am using a TableWidget for call logs but large number of entries(150 entries) it is very slow to load.Hence,want to implement the same using a table view for the same.So,will I be able to access the tableview as I do with tablewidget?

            Every fall is to raise higher than Before.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              No, they work in a different way (even though the *widget version is a subclass of the *view version), and the one is not going to faster than the other in all cases.

              As I already tried to explain to you: to get to your data, you access the model, not the view.

              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