Results 1 to 5 of 5

Thread: QDataWidgetMapper

  1. #1
    Join Date
    Mar 2009
    Location
    Nashville Tn.
    Posts
    53
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDataWidgetMapper

    is there a complete explanation somewhere for how to use QDataWidgetMapper ?

    i am trying to learn to use it by using examples from qt and can not figure it out. i am trying to do this in creator. is there an order that it must be listed?

    this code
    mapper = new QDataWidgetMapper(this);
    causes error
    invalid use of undefined type 'struct QDataWidgetMapper' in my.cpp

    in my.h
    class QDataWidgetMapper;

    in class def
    QDataWidgetMapper *mapper;

    help....

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QDataWidgetMapper

    Have you read this issue of Qt Quarterly?
    http://doc.trolltech.com/qq/qq21-datawidgetmapper.html

    I'm currently trying to work this class out myself.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDataWidgetMapper

    #include <QDataWidgetMapper> somewhere
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Mar 2009
    Location
    Nashville Tn.
    Posts
    53
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile Re: QDataWidgetMapper

    Thanks for your response, yes Chris that is the file i am using to suss this out. wysota that did work but it is not mentioned in the file Chris and i are looking at. I am brand new to QT i have several QT books but have not found one that describes the exact usage for each component that a TOTAL nubie (me) could use, do you know of something?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDataWidgetMapper

    If you tell us what you don't know, we'll try to clear things out. There is a very simple example of using the mapper in its docs, is that not enough for you?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QDataWidgetmapper
    By locus in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2012, 11:24
  2. QPersistentModelIndex and QDataWidgetMapper
    By Banjo in forum Qt Programming
    Replies: 6
    Last Post: 3rd July 2008, 00:31
  3. Replies: 3
    Last Post: 21st January 2008, 12:22
  4. QDataWidgetMapper and QSqlRelationalTableModel problem
    By larry104 in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2007, 15:46
  5. QDataWidgetMapper <=> QComboBox best practice
    By saknopper in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 10:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.