Closed karahman1993 closed 7 years ago
You can use my patch from https://github.com/oKcerG/SortFilterProxyModel/issues/25 to build as standalone plugin.
After building you get a libqmlqsortfilterproxymodelplugin.so library. You should put it (and qmldir file) into /usr/qml/QQSFPM/ or whereever your QML plugins live. Then you can do "import QQSFPM 0.2" as usual.
qmldir file:
module QQSFPM
plugin qmlqsortfilterproxymodelplugin
i tried your example, I had this error "could not find the executable, please specify one" Please i am beginner, Can you Explain more ??
Hmm, let's try.
Feel free to contact me on skype: iberiozko.
@iberiozko i tried but it did not work!!!! so i show you my file "finale":
-finale ----finale.pro -----SortFilterProxyModel --------- SortFilterProxyModel.pro -------- -Header ------------ filter.h ------------ qmlqsortfilterproxymodel.h ------------ sorter.h -------- -Source ------------ filter.cpp ------------ plugin.cpp ------------ qmlqsortfilterproxymodel.cpp ------------ sorter.cpp -------- -Sources ------------ main.py -------- -Ressources ----------- -qml.qrc --------------- -/ ------------------------- main.qml
when i try this, i get : "qmlqsortfilterproxymodelplugin.dll in filder debug" not "libqmlqsortfilterproxymodelplugin.so" so when i put this .dll and qmldir in my folder (stage/finale) and i run my PyQt i get error "module QQSFPM is not installed). so is the bug in the architecture that I showed you ?? or another problem?? thank you
Duplicate of #25
How do I use this SortFilterProxyModel which is in c ++ with PyQt??