[PyQt] PyQtDeploy with QML application

Charlie Gentil ceg at redaction-developpez.com
Tue Apr 8 07:33:09 BST 2014


Le lundi 7 avril 2014, 18:04:21 Phil Thompson a écrit :
> On 07-04-2014 5:53 pm, Charlie Gentil wrote:
> > Le lundi 7 avril 2014, 17:21:27 Phil Thompson a écrit :
> >> On 07-04-2014 5:11 pm, Charlie Gentil wrote:
> >> > Le lundi 7 avril 2014, 16:54:37 Phil Thompson a écrit :
> >> >> On 07-04-2014 4:35 pm, Charlie Gentil wrote:
> >> >> > Le lundi 7 avril 2014, 11:25:47 Phil Thompson a écrit :
> >> >> >> There are a couple of things to do...
> >> >> >> 
> >> >> >> 
> >> >> >> 
> >> >> >> Use the current PyQt5 snapshot - it has more fixes for static
> >> >> >> 
> >> >> >> builds.
> >> >> >> 
> >> >> >> 
> >> >> >> 
> >> >> >> Add the QtQml module to your .pdy file.
> >> >> >> 
> >> >> >> 
> >> >> >> 
> >> >> >> Specify 'qrc:/application/mailQML.qml' as the URL of the QML
> >> > 
> >> > file. I
> >> > 
> >> >> >> will probably try and change things so that you don't need to
> >> >> >> 
> >> >> >> specify
> >> >> >> 
> >> >> >> the '/application' part, or (maybe) have a separate
> > 
> > configuration
> > 
> >> >> >> page
> >> >> >> 
> >> >> >> for QML files.
> >> >> >> 
> >> >> >> 
> >> >> >> 
> >> >> >> Phil
> >> >> > 
> >> >> > Hi,
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > I have tried the current PyQt5 snapshot and I have added the
> > 
> > QtQml
> > 
> >> >> > module.
> >> >> > 
> >> >> > In the list of Application Source > Application Package, I have
> >> >> > 
> >> >> > 
> >> >> > removed QML
> >> >> > 
> >> >> > file.
> >> 
> >> Why did you do this rather than change the URL as I suggested?
> >> 
> >> >> > Commands qmake & make operate correctly and an executable file
> > 
> > is
> > 
> >> >> > build.
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > I have created a folder with executable file (main) and QML
> > 
> > file.
> > 
> >> >> > I have run command ./main and the file is correctly executed
> > 
> > ...
> > 
> >> > but
> >> > 
> >> >> > I have
> >> >> > 
> >> >> > this message :
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > [charlie at charlie application]$ ./main
> > 
> > file:///home/charlie/Documents/dev/Test_pyqtdeploy/Test2/build/application
> > 
> >> >> > /mainQML.qml:1:1:
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > module "QtQuick" plugin "qtquick2plugin" not found
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > import QtQuick 2.2
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > I tested to add libqtquick2plugin.a in Extension Modules, but
> > 
> > here
> > 
> >> >> > the make
> >> >> > 
> >> >> > command crash.
> >> 
> >> The QtQuick plugin is not a Python extension module.
> >> 
> >> >> What's the point in removing the mainQML.qml file from the
> >> > 
> >> > executable?
> >> > 
> >> >> It works fine for me if you don't do that.
> >> >> 
> >> >> 
> >> >> 
> >> >> Phil
> >> > 
> >> > Sorry, I do not know what you mean
> >> 
> >> Maybe the above is clearer?
> >> 
> >> 
> >> 
> >> Phil
> >> 
> >> _______________________________________________
> >> 
> >> PyQt mailing list PyQt at riverbankcomputing.com
> >> 
> >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> > 
> > Yes it is clearer.
> > How do I do then to not have this message ?
> > 
> > [charlie at charlie application]$ ./main
> > 
> > 
> > file:///home/charlie/Documents/dev/Test_pyqtdeploy/Test2/build/application
> > /mainQML.qml:1:1:
> > 
> > 
> > module "QtQuick" plugin "qtquick2plugin" not found
> > 
> > import QtQuick 2.2
> 
> Keep the QML file in the .pdy project file and use the URL I suggested.
> That works for me.
> 
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Hello,

Actually it works.
I made ​​an error in my previous tests.

Sorry and thank you for all

Charlie


More information about the PyQt mailing list