Hi Manoj On 12.03.2012 11:27, manoj jangra wrote: > I'm getting warnings (Unable to assign [undefined] to QString text) > while trying to load data into a gridmenu in QML from C++ files. > In QML file I load this data by declaring source as > "source:model.image". and set the model data from C++ file. > Data is loaded successfully but I'm getting warnings as mentioned above. > Can anyone please help me out in getting rid of these warnings??
you don't give much information here, but probably your QML item is created before the model data has been created by the C++ code. So in the meantime some strings are bound to undefined values, that's why you get the warning. You have to make sure, that the data is available when your QML stuff is instantiated or at least initialize it with empty strings. Best regards Sven _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
