I have this strange issue in my QML Project, that I have successfully created *.so file of my extension, which I have put in
/usr/lib/qt4/imports/Kornicameister/XMLWriterParser
/usr/lib/qt4/imports/Kornicameister/XMLWriterParser
To copy to clipboard, switch view to plain text mode
along with qmldir file and at the very beginning after I've just added
import Kornicameister.XMLWriterParser 1.0
import Kornicameister.XMLWriterParser 1.0
To copy to clipboard, switch view to plain text mode
in QML file I am able to write
XMLWriterParser{
id: myItem
}
XMLWriterParser{
id: myItem
}
To copy to clipboard, switch view to plain text mode
and everything works fine (I am also able to access methods declared in c++ code), but suddenly Creator fails to find imported plugin...this is pretty weird...even more if I could access myItem right after adding import statement
I am not quite sure which part of the code should I add, so I will post my repository github url https://github.com/kornicameister/QMLXMLParser
in this code I have two classes
- XMLParser
- XMLWriterParser
and I am trying to use XMLWriterParser inside QML system...
what I am doing wrong, that it fails to find my library correctly ? Maybe I am missing some headers, however documentation does not mention about headers at all...
additionally here is the pro file of the project where I am trying to use the plugin
# Add more folders to ship with the application, here
folder_01.source = qml/MajekTheGame
folder_01.target = qml
DEPLOYMENTFOLDERS = folder_01
# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =
symbian:TARGET.UID3 = 0xE4C4158B
# Allow network access on Symbian
symbian:TARGET.CAPABILITY += NetworkServices
# Define QMLJSDEBUGGER to allow debugging of QML in debug builds
# (This might significantly increase build time)
# DEFINES += QMLJSDEBUGGER
# If your application uses the Qt Mobility libraries, uncomment
# the following lines and add the respective components to the
# MOBILITY variable.
# CONFIG += mobility
# MOBILITY +=
# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp
# Please do not modify the following two lines. Required for deployment.
include(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()
OTHER_FILES +=
LIBS += -L/usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/ -lXMLParser
INCLUDEPATH += /usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/
DEPENDPATH += /usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/
# Add more folders to ship with the application, here
folder_01.source = qml/MajekTheGame
folder_01.target = qml
DEPLOYMENTFOLDERS = folder_01
# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =
symbian:TARGET.UID3 = 0xE4C4158B
# Allow network access on Symbian
symbian:TARGET.CAPABILITY += NetworkServices
# Define QMLJSDEBUGGER to allow debugging of QML in debug builds
# (This might significantly increase build time)
# DEFINES += QMLJSDEBUGGER
# If your application uses the Qt Mobility libraries, uncomment
# the following lines and add the respective components to the
# MOBILITY variable.
# CONFIG += mobility
# MOBILITY +=
# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp
# Please do not modify the following two lines. Required for deployment.
include(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()
OTHER_FILES +=
LIBS += -L/usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/ -lXMLParser
INCLUDEPATH += /usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/
DEPENDPATH += /usr/lib/qt4/imports/KornicameisterQML/XMLWriterParser/
To copy to clipboard, switch view to plain text mode
Bookmarks