[Qt-interest] QAction's icon

Anton Chernov mechernov at gmail.com
Wed Mar 23 10:11:37 CET 2011


Try to test your Pixmap (or Icon) in a QLabel for example. If the icon
is ok, then look in QMenu direction that holds the action and the
styles applied to all of that stuff. Maybe something is hiding it.

2011/3/22 Ta-Cheng Lin <tclin1998 at gmail.com>:
> Hi:
> I do the following,
> lef2oaX is in 'xpm' format
> The icon does not appear in front of string "lef2oa".
>
> Any comments will be appreciated.
>
> -Todd
>
> ---
> QAction *lef2oa = new QAction(QIcon(QPixmap(lef2oaX)), "&lef2oa", this);
>
> _file->addAction(lef2oa);
>
> --
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list