menu - Qt: Adding a special item to QMenu -


some programs maya , wings3d have menu, includes special link on menu items on right side (usually square) triggers different feature. example, wings3d might have item called "cube", makes standard cube. however, if click on highlightable/selectable box beside "cube" item, perform different operation. attached image of wings3d example.

is easy way using qmenu , qaction? should create special layout qmenu or need subclass more fine-grained control?

alt text

you try using qwidgetaction accomplish this. might take bit of work ensure actions stay consistent in terms of & feel typical rendering of qactions across different platforms , styles.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -