Of course have! In Qt, if there is a will, there is a way.
You will probably need to create your own class that uses QMenu and uses a member of QListWidget .
Then you need to generate the layout and overload all the correct QLayout functions to recalculate the size.
And then you will need to use this layout (think QHBoxLayout ) to display both QMenu and QListWidget side by side.
That should be enough to point you in the right direction.
EDIT:
As the commentator noted, you cannot inherit two QObject things, so I updated the answer accordingly.
Tyler jandreau
source share