Questions tagged [plasmoid]

A plasmoid is a widget for the KDE Plasma system, which can be placed on the screen background or in the panel.

36 questions
10
votes
2 answers

Can I get the real width & height of a Text element?

I would like to get the real width & height of a Text element. If I use the paintedWidth & paintedHeight properties, I don't get it. For example: Rectangle { color: "green" width: a_text.paintedWidth height: a_text.paintedHeight …
qmldonkey
  • 271
  • 1
  • 2
  • 9
5
votes
0 answers

How to show/hide KDE plasmoid's tooltip programatically?

Is there a way to make a plasmoid tooltip to show/hide programatically? I tried by setting a ToolTipArea over the compact representation, and trying to trigger it with a Timer - it does not work (the regular tooltip keeps showing but only when…
acidrums4
  • 217
  • 3
  • 12
4
votes
1 answer

Refresh my new plasmoid - reparse source

I'm learning how to develop Kde Plasma 5 plasmoids, and testing it with a small widget, consistent of just two qmls. I read some information sources, like https://techbase.kde.org or https://api.kde.org/frameworks/ and created a package structure…
Alberto Jiménez
  • 384
  • 1
  • 3
  • 16
4
votes
1 answer

Saving config of a Python plasmoid

I managed to write a plasmoid using Python with a configuration dialog where one can select a file. I also managed to read out the selected value. But how can I make the selection persistent? I'm pretty sure that there's some KDE/Qt predefined…
Tobias Leupold
  • 1,512
  • 1
  • 16
  • 41
3
votes
1 answer

How to set the line spacing for Qml Text Item?

I can't figure this one out. I mean the vertical spacing between lines of text in a Qml Text Item. I can't use Rich Text, and GridLayout seems to destroy my wrapping, horizontal alignment and the ability to check for truncated. This is inside a…
swaggg
  • 460
  • 4
  • 13
3
votes
1 answer

Where do I store plasmoid's custom data?

I'm new to KDE development. I wrote a plasmoid that needs to store its data somewhere, namely - ical feeds need to be stored for offline usage. While I could just write it to ~/.ical/ or some other location I would make up, I'd like to know what is…
GDR
  • 2,301
  • 1
  • 21
  • 26
3
votes
2 answers

Autocompletion not working with PyQT4 and PyKDE4 in most of the IDEs

I am trying to develop a plasmoid using python. I have tried eclipse with pydev, vim with pythoncomplete, PIDA and also Komodo, but none of them could give me autocmpletion for method names or members for the classes belonging to PyQT4 or PyKDE4. I…
rangalo
  • 5,448
  • 8
  • 46
  • 66
2
votes
1 answer

How to convert KDE plasmoid's `metadata.desktop` to `metadata.json` using `desktoptojson`?

I'm writing my first KDE plasmoid using QML. The hello world example uses a metadata.desktop file, while this KDE Plasmoid tutorial talks about a metadata.json instead and says that the metadata.desktop is 'discouraged' now and a desktop file should…
Peter T.
  • 2,927
  • 5
  • 33
  • 40
2
votes
0 answers

KDE Plasmoid how to override Text displayed when hovered over the plasmoid

If I hover over my plasmoid, it displays the string specified as comment in the metadata.desktop. But if I for example hover over the battery-icon, it displays the percentage. Is there any function to override this behavior and display an other…
Max Kofler
  • 86
  • 4
2
votes
1 answer

How to set an icon for an QML Plasmoid

I have a very simple Plasmoid (it consists of only 1 JS file and 1 main.qml file). I've been browsing the internet for almost an eternity, but I can't figure out, how to set an icon the for the plasmoid to use in the KDE panel.
user6573388
1
vote
0 answers

QML (KDE Plasmoid): Can't get seamless scrolling text to loop accordingly

I'm working on a plasmoid for KDE Plasma and can't figure out how to implement a scrolling header bar, similar to ones you see at the bottom of the screen on news channels. I want to have a line of text which horizontally scrolls inside a colored…
MirceaKitsune
  • 777
  • 1
  • 5
  • 14
1
vote
1 answer

How can I access an SVG included as part of my new Plasmoid in Plasma 5?

I'm trying to learn how to create Plasmoids. Right now, I have a custom SVG file that I would like to include with the Plasmoid. I can't seem to access SVG files that aren't part of my current theme, thus if I installed the plasmoid on a different…
1
vote
1 answer

Create a submenu like kicker in Qml

I am on a kde plasmoid for my own usage.It is an applicaton menu like kicker and I am trying to make to open a submenu when I click on an item in main menu like in the picture : But all I can manage is this: How can I open the submenu outside the…
cgiannakidis
  • 81
  • 1
  • 6
1
vote
1 answer

Unable to dynamically change KDE Plasma 5 Widget Expandable FullRepresentation Component size outside of Component.onCompleted

I'm coding a widget that can be expanded to its FullRepresentation by being clicked on: onClicked: { plasmoid.expanded = !plasmoid.expanded } I have a function that updates its contents and puts…
swaggg
  • 460
  • 4
  • 13
1
vote
0 answers

Alarms & Notifications for plasmoids

I'm having a hard time finding any literature or examples on how to write notifications for plasmoids. My plasmoid can so far display notifications and sound alarms when certain conditions are met but i don't know how to: add a 'Dismiss' button to…
yamahama
  • 39
  • 2
1
2 3