[Qt-interest] XMLQuery QVariantList binding

Jorge Abrines curruscataphractus at gmail.com
Tue Mar 9 20:57:11 CET 2010


Hi all,

I'm trying to bind a QVariantList variable into one inside a xquery. What I've 
done is to create an

element sample { $myvariable }

inside query and bind myvariable like:
  QVariantList vl;
  vl << double(1) << double(2); // all variants of same type as docs says
  query.bindVariable("myvariable", QVariant(vl));
// I've also tried with QStringList with same results :(

But the program either seg faults or receives signal 11. Attached there's
a sample program which does what's stated above. I've tested on Linux using 
4.5.2 and 4.6.2.

Any clues?

Many thanks in advance.

Best regards,

Jorge.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlquerybind.tar.bz2
Type: application/x-bzip
Size: 1008 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100309/1634f8bf/attachment.bin 


More information about the Qt-interest-old mailing list