Results 1 to 4 of 4

Thread: QPopupMenu porting problem

  1. #1
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default QPopupMenu porting problem

    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?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPopupMenu porting problem

    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.

  3. #3
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Re: QPopupMenu porting problem

    Thanks.........but........I am asking about QPopupMenu..........
    Is there any relationship?
    Since i m just porting old code, i don't really understand well...........

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPopupMenu porting problem

    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.

Similar Threads

  1. Ui problem of QT3 porting to QT4
    By batileon in forum Newbie
    Replies: 1
    Last Post: 12th June 2008, 11:31
  2. Weird problem while porting from Qt3 to Qt4
    By vermarajeev in forum Qt Programming
    Replies: 4
    Last Post: 8th August 2007, 08:51
  3. Font Problem Porting from Windows to Linux
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2007, 11:25
  4. Problem related to porting from QT3 to QT4 in list items
    By rohitjun in forum Qt Programming
    Replies: 5
    Last Post: 1st June 2007, 10:05
  5. Problem porting Kivio MP on win32 from Qt 3 to Qt 4
    By Amanda in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2006, 20:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.