PDA

View Full Version : Q3PopUpmenu: Qchar * to QString



user_mail07
1st February 2007, 18:52
editing test

ToddAtWSU
1st February 2007, 19:00
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);

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.

user_mail07
1st February 2007, 20:33
Thanks it worked. it was QString.