Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. SetData(int role,const QVariant) Data(int role)

SetData(int role,const QVariant) Data(int role)

Scheduled Pinned Locked Moved Qt in Education
3 Posts 3 Posters 3.5k 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.
  • X Offline
    X Offline
    XLeopard
    wrote on last edited by
    #1

    I'am typing codes in Chapter3,spreadsheet, of C++GUI Programming with Qt4.
    I don't understand why these two methods don't contain parameter "int column". Otherwise, how it locates where the cell is.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Not everyone has that book at hand. If you would tell us on which class you call that method, that would be great.

      http://www.catb.org/~esr/faqs/smart-questions.html

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

        Well, all is contained in the [[doc:QModelIndex]]. It contains row, column and parent item. These three together uniquely identify an item in an model.

        Edit: I happen to have the book here, but I can't quickly locate the exact snippet you're talking about.

        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