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.
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.