[Qt-interest] QtSql and boundValue() for SELECT results
Michal Ludvig
mludvig at logix.net.nz
Fri Jul 3 07:52:57 CEST 2009
Bill King wrote:
> ext Michal Ludvig wrote:
>> Hi,
>>
>> what's the way to use QtQuery.boundValue(':placeholder') for SELECT
>> statements? I can't find an example and failed to work it out myself too.
>>
>
> Why not instead xyz = query.record().value("xyz"); ?
Why not? Simply because I wasn't aware of QSqlRecord. I'm still new to
Qt4 and don't know all the library by heart. Yet! ;-)
Indeed, this is what I was after, thanks!
Michal
More information about the Qt-interest-old
mailing list