Results 1 to 2 of 2

Thread: QpopupManu

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default QpopupManu

    Hi, it happen this strange thing; see the strange symbols on the left of pictures. What are they?
    Qt Code:
    1. myPopupmenu->insertItem(QPixmap::fromMimeSource("zoom_in.png"),"Zoom in",2);
    2. myPopupmenu->insertItem(QPixmap::fromMimeSource("zoom_out.png"),
    3. "Zoom out", this, SLOT(wireframe()), 3);
    4. myPopupmenu->insertItem(QPixmap::fromMimeSource("wireFrame.png"),
    5. "WireFrame", this, SLOT(wireframe()), 4);
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QpopupManu

    Quote Originally Posted by mickey
    myPopupmenu->insertItem(QPixmap::fromMimeSource("wireFrame.png "),
    "WireFrame", this, SLOT(wireframe()), 4);
    Check in the docs what is the fifth parameter for this version of insertItem() method (certainly it's not a menu identifier).

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.