Results 1 to 2 of 2

Thread: QVariantList HELP!!!

  1. #1
    Join Date
    Sep 2006
    Posts
    15
    Thanks
    2

    Unhappy QVariantList HELP!!!

    I have a stored procedure on an oracle server and I am attempting to send a 2d Char array as one of the parameters. A simple Bind command will not work due to the fact that QVariant cannot handle 2d arrays. I'm having trouble understanding how to use the QVariantList type. Can someone help me??

    I need to pass in: char myarray [100][50];
    How do I convert 'myarray' to a QVariantList?

    -and-

    After binding and doing an execBatch() via:
    query.execBatch(QSqlQuery::ValuesAsColumns) // since I am using Oracle

    How do I retrieve the data returned?

    Thank you so much in advance for the help.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QVariantList HELP!!!

    Your char[][] array is really two arrays, so what you want is a QList<QVariantList> where you first fill the variant lists, then the list with the variant lists.

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.