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)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Qt in Education
3 Posts 3 Posters 3.2k 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.
  • X Offline
    X Offline
    XLeopard
    wrote on 14 Apr 2012, 02:00 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 16 Apr 2012, 13:00 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 16 Apr 2012, 13:08 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

        1/3

        14 Apr 2012, 02:00

        • Login

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