PDA

View Full Version : QPopupMenu porting problem



batileon
10th July 2008, 05:30
In QT4, is there any member function for QPopupMenu that can replace `updateItem` in QT3?


void QPopupMenu::updateItem ( int id ) [virtual]

I can't find any replacement in QT4, can anyone help me?

aamer4yu
10th July 2008, 06:52
What do u wanna do ?
I dont find QListBox class in Qt4. May be you can have a loot at QListWidget .
Also I see thta in Qt3 QListbox handled data and view. In Qt4 QListWidget represents the view, QTreeWidgetItem as data.

batileon
10th July 2008, 07:39
Thanks.........but........I am asking about QPopupMenu..........
Is there any relationship?
Since i m just porting old code, i don't really understand well...........

aamer4yu
10th July 2008, 10:19
Am sorry for my asnwer. I searched popUpMenu function and saw it was in Q3ListBox, and i didnt pay attention to the class u gave.


Well As for QPopupMenu, in Qt4 class is QMenu. You may explore it acc to ur need.

From the docs -

The Q3PopupMenu class is a thin compatibility wrapper around QMenu.
Use QMenu in new applications. Note that the menu's actions must be Q3Actions.