Bug in Parameter Tree?

24 views
Skip to first unread message

Daniel

unread,
Nov 1, 2020, 3:24:37 PM11/1/20
to pyqtgraph

Hi,
I am using the parameter tree to dynamically add entire parameter groups with the context menu. This works just fine, but the level 0 parameter group should all be dark grey with enhanced size. This seems not to work so far. The initial one is dark grey with enhanced size, but the added ones in the same level are light grey and smaller as you can see in the screenshot below.

If I add more models during init, it works just fine, but adding them afterwards results in the same issue.
A workaround for now is to reset the parameters to the parameter tree in the slot of the context menu as follows:
self.paramTree.setParameters(self.p, showTop=False)
I think this is not intended to be the conventional approach, because if I do this the entire tree expands each time I add a new model, which is quite enoying.

Is this really a bug or do I need a different workaround for this?

Daniel

unread,
Nov 1, 2020, 3:33:12 PM11/1/20
to pyqtgraph
Hi,
excuse me, I am using google groups for the first time. Somehow the screenshots get lost, if I copy/paste them directly in the post.
Hopefully, it works now.
First screenshot: One model added at init and the others added dynamically via the context menu
Second screenshot: Two models added at init and the others added dynamically via the context menu
Third screenshot: Workaround with resetting the parameters to the parameter tree within the context menu slot
Screenshot 2020-11-01 212744.pngScreenshot 2020-11-01 212821.pngScreenshot 2020-11-01 212757.png
Reply all
Reply to author
Forward
0 new messages