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. [Solved]Change QDataWidgetMapper column index? ie: 0 to 1
Forum Updated to NodeBB v4.3 + New Features

[Solved]Change QDataWidgetMapper column index? ie: 0 to 1

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.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.
  • W Offline
    W Offline
    weblife
    wrote on last edited by
    #1

    I need to change QDataWidgetMapper column index so when I setCurrentIndex(id) it matches the correct column associated id?

    Can someone point me in the right direction. I would think I have to make this change at model end. After some research I am looking more towards the QModelIndex and the setRootIndex() member.

    Brandon Clark
    www.themindspot.com

    1 Reply Last reply
    0
    • W Offline
      W Offline
      weblife
      wrote on last edited by
      #2

      Okay, pretty sure this did it:

      @ index(0,1);@

      I have my model extended through a control class and pretty sure this sets the index to the model query.

      Brandon Clark
      www.themindspot.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