[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Connecting to Data Engine in QT Quick
From:       Mark <markg85 () gmail ! com>
Date:       2012-01-22 13:41:11
Message-ID: CAPd6JnFzh4ZBhW95qKDtwuqoqfK26ZJiKqHXfjE0H8kT9hQx0A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sun, Jan 22, 2012 at 7:27 AM, Shaun Reich <shaun.reich@kdemail.net>wrote:

> On Sat, Jan 21, 2012 at 11:53 PM, Eric Mesa <ericsbinaryworld@gmail.com>
> wrote:
> > Working with QT Quick in QT Creator.  Using QML to do GUI design.
>  Finally
> > figured out my data engine issues that I emailed about about back in
> August.
> >  So now I want to connect to my data engine.  I found this
> > website:
> http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#Data_Engines
> > but when I put in  "import org.kde.plasma.core 0.1 as PlasmaCore" (no
> > quotes) I get the error "module "org.kde.plasma.core" is not installed"
>
> that import is only valid if you are making a plasmoid. through a raw
> QML thingy you can't use core components. core components is only
> meant as a plasmoid goodie bag.
>
> you can still use org.kde.plasmacomponents afik though. but if you're
> using a dataengine in the first place...and a QML applet..i have to
> ask why it isn't a plasmoid in the first place. probably make things a
> lot easier...
>
> as for 'packages', the imports are in
> kde-runtime/plasma/declarativeimports, so having that should be fine.
>
> I have to correct you there :)
You can perfectly use the plasma imports of you let QML know about the path.
Just add "QML_IMPORT_PATH += /path/to/plasmacomponents" (lookup the right
path please, don't know it out of my head) and you can start using
plasmacomponents in your qml app.

It's that easy!

[Attachment #5 (text/html)]

On Sun, Jan 22, 2012 at 7:27 AM, Shaun Reich <span dir="ltr">&lt;<a \
href="mailto:shaun.reich@kdemail.net">shaun.reich@kdemail.net</a>&gt;</span> \
wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 \
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Sat, Jan 21, 2012 at 11:53 PM, Eric Mesa &lt;<a \
href="mailto:ericsbinaryworld@gmail.com">ericsbinaryworld@gmail.com</a>&gt; \
wrote:<br> &gt; Working with QT Quick in QT Creator.  Using QML to do GUI design.  \
Finally<br> &gt; figured out my data engine issues that I emailed about about back in \
August.<br> &gt;  So now I want to connect to my data engine.  I found this<br>
&gt; website: <a href="http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#Data_Engines" \
target="_blank">http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#Data_Engines</a><br>
 &gt; but when I put in  &quot;import org.kde.plasma.core 0.1 as PlasmaCore&quot; \
(no<br> &gt; quotes) I get the error &quot;module &quot;org.kde.plasma.core&quot; is \
not installed&quot;<br> <br>
</div>that import is only valid if you are making a plasmoid. through a raw<br>
QML thingy you can&#39;t use core components. core components is only<br>
meant as a plasmoid goodie bag.<br>
<br>
you can still use org.kde.plasmacomponents afik though. but if you&#39;re<br>
using a dataengine in the first place...and a QML applet..i have to<br>
ask why it isn&#39;t a plasmoid in the first place. probably make things a<br>
lot easier...<br>
<br>
as for &#39;packages&#39;, the imports are in<br>
kde-runtime/plasma/declarativeimports, so having that should be \
fine.<br><br></blockquote><div>I have to correct you there :)</div><div>You can \
perfectly use the plasma imports of you let QML know about the path.</div><div>

Just add &quot;QML_IMPORT_PATH += /path/to/plasmacomponents&quot; (lookup the right \
path please, don&#39;t know it out of my head) and you can start using \
plasmacomponents in your qml app. </div><div><br></div><div>It&#39;s that easy!</div>

</div><br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic