I am having a problem with Qt on Android. My apps works perfectly in MinGW but in Android it doesn't work. I have a Q_PROPERTY like:
#include <QObject>
class wolistupdate : public QObject
{
Q_OBJECT
Q_PROPERTY(QList<QObject*> wolist READ wolist WRITE setWolist NOTIFY wolistChanged)
public:
explicit wolistupdate(QObject *parent = 0);
QList<QObject*> wolist() const;
void setWolist(const QList<QObject*> &wolist);
signals:
void wolistChanged();
private:
QList<QObject*> m_wolist;
};
#include "wolistupdate.h"
wolistupdate::wolistupdate(QObject *parent) : QObject(parent)
{
}
QList<QObject*> wolistupdate::wolist() const
{
return m_wolist;
}
void wolistupdate::setWolist(const QList<QObject *> &wolist)
{
if(wolist!=m_wolist)
{
m_wolist=wolist;
emit wolistChanged();
}
}
The view is updated when wolist is changed on MinGW. But if I build for Android, this doesn't work well.