Results 1 to 2 of 2

Thread: QSqlRecord problem

  1. #1
    Join Date
    Sep 2009
    Posts
    34
    Thanks
    28
    Qt products
    Qt4
    Platforms
    MacOS X

    Question QSqlRecord problem

    Hi guys,

    I have some trouble with the following: I want to get a couple of QStrings and put them into a QSqlRecord, the problem is, I am not sure on how to add fields to a record, I don't think the documentation is clear enough. In fact,

    Qt Code:
    1. QSqlRecord patient;
    2. patient.setValue("name", "Abel");
    To copy to clipboard, switch view to plain text mode 

    simply gives me an error: "aggregate `QSqlRecord patient´ has incomplete type and cannot be defined"

    Any code samples would be appreciated.

    Thanks in advance,

    Nefastious

  2. #2
    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: QSqlRecord problem

    Did you #include <QSqlRecord>?
    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.


  3. The following user says thank you to wysota for this useful post:

    Nefastious (15th October 2009)

Similar Threads

  1. Replies: 19
    Last Post: 4th April 2009, 00:17
  2. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 13:05
  3. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 15:38
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 13:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36

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.