However, the question here is that I want it place on the view forever, which means that I should not use a toolButton which will make my button list disappear as long as the toolButton is not triggered.
I wish to add widget on the Slice View but I still cannot fix this problem, hope someone can help. Thank you.
@mau_igna_06
Hi, thank you for the quick reply!
I did what you suggest, it works. However, I encountered a problem which the width of the popupWidget is to large and I could not fix it by now. Do you have any suggestion? Thank you so much.
You have chosen the qt.QVBoxLayout = vertical box layout, which puts all widgets in a column. If you want to display widgets in a row you can use qt.QHBoxLayout.
@lassoan Hello, Thanks for your reply.
I did what you suggest and it looks great as the image below.
However, I still wish it to be a vertical button table. Which looks like
the image below but with a narrow width
The problem is that as long as the popupWidget is added under the sliceController().layout(), the width will be as large as the slice Controller layout. Which I want the white blank to disappear as the above image shows.