plasma data engine / property loop
Martin Koller
kollix at aon.at
Sat Jan 14 23:04:23 GMT 2017
Hi,
trying to fix the systemload applet (and new to QML), how can one solve the problem:
- a data engine delivers the number of CPU cores
- depending on this number, I need to separately "connect" to additional sources in this data engine
This creates a property loop.
dataSources array depends on cores, but cores is set from dataSources
E.g. (pseudo code)
property int cores: 0
dataSources: sources()
function sources() { ... create array depending on property "cores", like "cpu/cpu<core index>/nice" ... }
onNewData: { cores = data.value }
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at
More information about the kde
mailing list