Having an issue with the minimum size of Plasma.WebView

Aleix Pol aleixpol at kde.org
Fri Jan 18 03:55:14 UTC 2013


On Mon, Jan 14, 2013 at 4:33 PM, Luca Beltrame <lbeltrame at kde.org> wrote:

> In data lunedì 14 gennaio 2013 16:30:15, Aaron J. Seigo ha scritto:
>
> > the real fix, however, is not to do the UI in python. use QML.
>
> Speaking of that, how does Plasma (or the workspace in general) fit when
> using
> QML, according to these 3 definitions (taken from the PyQt docs):
>
> 1. Pure applications that are written entirely in QML and can be run using
> the
> qmlviewer tool provided with Qt. PyQt4 fully supports this type of
> application.
>
> 2. QML allows QObject instances to be used in QML applications. QML code is
> able to call an object’s slots and has read and write access to the
> object’s
> properties. QML code can also respond to changes to the value of a
> property.
> PyQt4 fully supports the use objects created in Python in this way. T
>
> 3. QML also allows QObject sub-classes to be used in QML applications so
> that
> new instances are created from QML. PyQt4 does not support this. The
> reason is
> that QML uses information generated at compile time (specifically it uses
> QObject::staticMetaObject) rather than information created dynamically at
> run
> time (i.e. QObject::metaObject()). This approach is fine for a static
> language
> like C++ but causes problems for languages such as Python that allow types
> to
> created dynamically.
>
> This may be important for users of bindings.
>
> --
> Luca Beltrame - KDE Forums team
> KDE Science supporter
> GPG key ID: 6E1A4E79
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
I think I already discussed this with someone in Randa, from my point of
view, the best abstraction is at the "import" level.

If you want C++ in Plasma, you make a declarative plugin that exposes some
modules.
With Python (or Haskell or Ruby) the same should happen.

This would mean that as long as it's possible to use QtCore in those
languages, we can start integrating them.

If we can leverage the bindings to Qt, we reduce complexity and we get a
lot of stuff for free that will be also more re-usable in other
applications.

...no? :)
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130118/2d493749/attachment.html>


More information about the Plasma-devel mailing list