(Qt 3)
In the QMenuData class there is an "int" return value when using the insertSeparator method but the text doesn't explain what exactly it is returning ...?
Here is the text:
int QMenuData::insertSeparator ( int index = -1 )
Inserts a separator at position index. The separator becomes the last menu item if index is negative.
In a popup menu a ......etc
What is this int value? The reason I ask is that I need to track separators and remove them if they are side by side in the menu (later on in the code I hide certain menu items according to the user logged in). I thought I could use this int value to track the separators but the values are odd (like -36 for example).
Anyone try to track separators in a menu (I need to be able to track them like regular menu items)?
Thanks




Reply With Quote
Bookmarks