[Qt-interest] what is wrong with this Complex Data Structure

Denis Akhmetzyanov dakhmetzyanov at smartlabs.tv
Tue May 11 10:22:52 CEST 2010


>  result_set.append( result_set_map):   <--------------------This is where
the error

> The error im getting is :
  error C2143: syntax error : missing ';' before ':'
 error C2143: syntax error : missing ';' before ':'

You should use ';' instead of ':'


2010/5/11 Meir Yanovich <meiry242 at gmail.com>

> Hi
> i have this complex type to hold complex JSON data
> when i try to insert data to it it allways gives me compilation errors:
> here is the code :
>     QMap<QString,QList<QMap<QString,QString > > > ResultMap;
>     QList<QMap<QString,QString > > result_set;
>
>     for(int i = 3;i<3;i++)
>     {
>        QMap<QString,QString>  result_set_map;
>         result_set_map.insert("www","wwwww");
>         result_set.append( result_set_map):   <--------------------This is
> where the error
>
>     }
>     ResultMap.insert("notification_info", result_set);
>
> The error im getting is :
>   error C2143: syntax error : missing ';' before ':'
>  error C2143: syntax error : missing ';' before ':'
>
> what is wrong here ?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Best regards,
Denis Akhmetzyanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100511/cb67c705/attachment.html 


More information about the Qt-interest-old mailing list