Please use the CODE tags when writing code again instead of your own system. Then the syntax will be highlighted.
Anyways, what kind of an object is strLabel? If strLabel is just a QString then your constructor needs to look like:
pPopupMenu = DisplayPopupMenu(mainWindow, strLabel);
pPopupMenu = DisplayPopupMenu(mainWindow, strLabel);
To copy to clipboard, switch view to plain text mode
Your constructor says it takes a QString as the 2nd argument but the data( ) function of a QString returns a QChar*. I hope this helps.
Bookmarks