View Full Version : Can't use QSortFilterProxyModel in Qt quick application [solved]

29th March 2015, 17:46
I'm trying to create a QSortFilterProxyModel on qt creator 5.4.1 as below. But I don't know it always builds fail with the error: C2061 identifier QSortFilterProxyModel

#include <QApplication>
#include <QQmlContext>
#include <QQmlApplicationEngine>
#include "MyViewModel.h"

int main(int argc, char *argv[])
QApplication app(argc, argv);

auto detailsProxyModel = new QSortFilterProxyModel();

Anyone can help me? Do i need to install anything else or do some configuration?

----> Sorry for any inconvenience. I forgot "#include <QSortFilterProxyModel>"
Thanks so much