Ask / Submit

[partly solved]ProgressBar in Notifications

asked 2018-07-27 13:18:17 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-09-19 10:45:51 +0200

velox gravatar image

Since 2.2.0, according to the Release Notes, ProgressBars in notifications are supported. Does that mean it should be possible with the pure qml Notification {} from import Nemo.Notifications 1.0?

I didn't find anything related in the docs.

After a short look, the only thing for this I found was in the home screen: JollaNotificationListModel entries apparently have the properties notification.hasProgress (bool) and notification.progress (real) – but I have no clue as to how to set those, from qml or otherwise, as the Notification QML-Type doesn't have them by default and does not care if I set them as properties. Not that I expected it to, but I tried it, anyways.


As coderus pointed out below, the Notifications QML-Type does not support this, but from C++ there's

notification.setHintValue("x-nemo-progress", 0.5);

Thanks for digging this out!

edit retag flag offensive close delete


good catch, need to try this asap!

coderus ( 2018-08-21 08:31:04 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-08-20 10:57:26 +0200

updated 2018-08-20 10:58:03 +0200


Android apps can use it though

edit flag offensive delete publish link more

answered 2018-08-23 11:13:48 +0200

coderus gravatar image

updated 2018-08-23 12:30:02 +0200

notification.setHintValue("x-nemo-progress", 0.5);
edit flag offensive delete publish link more


interesting,...where would you insert that line of code?, or is there more code involved?

Edz ( 2018-08-23 12:00:41 +0200 )edit

using c++ Notifications class, not available via QML

coderus ( 2018-08-23 12:21:56 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2018-07-27 13:18:17 +0200

Seen: 612 times

Last updated: Sep 19 '18