ImageMenuItem.setUseStock

void setUseStock(bool useStock)

If true, the label set in the menuitem is used as a stock id to select the stock item for the item.

Parameters

useStocktrue if the menuitem should use a stock item