Results 1 to 2 of 2

Thread: Q3PopupMenu - unsupported method issue

  1. #1
    Join Date
    Oct 2006
    Location
    San Francisco, USA
    Posts
    14
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Q3PopupMenu - unsupported method issue

    Hi,

    I have successfully ported (yippee :-) with great help from this forum an app from Qt 3 to Qt 4. Have some remaining issues.

    In Qt 3, QPopupMenu inherited the following method:
    int QMenuData::insertItem ( QWidget * widget, int id = -1, int index = -1 )

    I'm using Qt 4's support library for Qt 3 - Q3PopupMenu, however, the above method is unsupported in this class. Any ideas?

    My code:

    ColorPanel* standardPanel = new ColorPanel(0); # class ColorPanel extends QWidget
    Q3PopupMenu* popupMenu = new Q3PopupMenu();

    popupMenu->insertItem(standardPanel);


    Compiler error:

    error: no matching function for call to `Q3PopupMenu::insertItem(tkwidgets::ColorPanel*&)'

    Thanks,
    Amanda

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Q3PopupMenu - unsupported method issue

    I think it's not possible anymore to add widgets to menus. But you could insert that widget to the toolbar instead.

Similar Threads

  1. Q3PopupMenu
    By raphaelf in forum Qt Programming
    Replies: 15
    Last Post: 6th March 2006, 18:57

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.