Libraries, QML, and Fedora

Marco Martin notmart at gmail.com
Wed Mar 6 09:50:22 UTC 2013


On Wednesday 06 March 2013, Eric Mesa wrote:
> So far in my QML/QT Quick programs instead of doing an import like this:
> 
> import  org.kde.plasma.extras as PlasmaExtras
> 
> I have to do something like this:
> 
>  import "/usr/lib64/kde4/imports/org/kde/plasma/extras" as PlasmaExtras
> 
> so far that's been OK, but now I'm starting to use create more complex
> programs and some of those imports have their own imports.  So I need to
> get this fixed.  What do I need to do in order to get this to work
> correctly?

usually to get things right we just use kdeclarative from the c++ part, that 
sets the proper import paths (also, the "normal" or the touch ones as needed)
as Aleix noted, is a bit of an issue since qmlviewer won't work.
you can set the QML_IMPORT_PATH env variable to /usr/lib64/kde4/import to make 
it work there

(maybe that variable should also be set at KDE startup?)

-- 
Marco Martin


More information about the Plasma-devel mailing list