Qt add a widget inside another widget?
问题 I'd like to make a single widget that combines the behavior of two existing widgets. For example a widget that is a button that also contains a checkbox. The user can click the larger button but also the checkbox within. E.g. gmail introduced a "select-all" button that displays a menu on click, but it also integrates a checkbox that selects all email. See this screenshot for an example: How would one go about combining behaviors of existing widgets to this effect? I'm hoping for a solution