Floating child widget
-
I need to create a widget that would move with it's parent widget and it's wouldn't be bounded by parent's size (something similar to QListWidget part of QComboBox). I tried some WindowFlags which looked like relevant but all to no avail.
I there any easy way to do this? -
Here is a picture for sure. Green widget must be moved along with the red widget.
-
Ithink the only way to do that is to make the widget formaly independent of a parent widget, e.g, construct it in parents constructor and destroy in destructor, but do not construct it with a parent parameter.
-
But how make it to move along with the "parent" widget?
-
You should try reimplementing moveEvent for a parent widget
-
Oh, somehow i missed it. Thank you.