Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 27
Registered: ‎07-30-2011
My Device: Z10
My Carrier: Tmobile

Access the data in a extended XmlDataModel class

Hi all,


I'm trying to build an app that perform some filtering when some text is entered. I'm using an XmlDatamodel for that, but I don't know how to acces the data inside the parent class.


This is the header file:


#ifndef CustomXmlDataModel_HPP_
#define CustomXmlDataModel_HPP_

#include <QObject>

#include <bb/cascades/XmlDataModel>

class CustomXmlDataModel: public bb::cascades::XmlDataModel {

	void setFilter(const QString& file_name);


#endif /* CustomXmlDataModel_HPP_ */

  and this is the cpp file:

#include "CustomXmlDataModel.hpp"

void CustomXmlDataModel::setFilter(const QString& filter) {
	qDebug() << "filter setted: " + filter;


  Can any body help me??