Skrooge plasma dashboard: stuck with QML

Viranch Mehta viranch.mehta at gmail.com
Wed Dec 21 05:22:48 UTC 2011


On Wed, Dec 21, 2011 at 4:55 AM, Guillaume DE BURE <
guillaume.debure at gmail.com> wrote:

> I'm doing this in 4.7.90 (unstable archlinux packages)
>

You should probably move to KDE compiled from git source.


>
> 1) widget size:
> -------------------
> even though I specified the widget size, if the dashboard contains only QML
> widgets, they appear with a very small width:
> http://wstaw.org/m/2011/12/20/plasma-desktopVB1577.png
> http://wstaw.org/m/2011/12/20/plasma-desktopav1577.png
>
> As soon as I add a C++ widget, the size is correctly computed:
> http://wstaw.org/m/2011/12/20/plasma-desktopbb1577.png
>
>
Try adding "X-Plasma-DefaultSize=600,600" in metadata.desktop and instead of
width/height: 600 in main.qml, do the following:
property int minimumWidth: 600
property int minimumHeight: 600

This might produce expected behavior.


>
> 2) PlasmaComponents.Label font size:
> --------------------------------------------------
> For some reason, the font size there is significantly larger than in basic
> QML
> Text component. Any idea why ?
>

You can simply use Text component wherever you just want to display text.


>
> 3) ListView highlight:
> ---------------------------
> With the aforementionned code, I can't seem to get the expected behaviour
> on
> highlighting items in the list. Any idea why ?
>
>
The highlight follows the currentItem. So you need to add a MouseArea in
your
delegate with hoverEnabled: true and onEntered: list.currentIndex = index
This will make the hovered item your list's current item and the highlight
will
follow it.

Cheers,
Viranch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111221/4e7681cc/attachment.html>


More information about the Plasma-devel mailing list