[Qt-interest] icons are not appearing in windows
David Ching
dc at remove-this.dcsoft.com
Sun Dec 6 22:40:19 CET 2009
> "Sujan Dasmahapatra" <sujan.dasmahapatra at gmail.com> wrote in message
> news:b3126990912051730u4eec0502h30a990a462a15d06 at mail.gmail.com...
> Friends
> I am building QT application in vc++. Trying to put some icons on the
> toolbars.But none of the icons are appearing.Can u suggest whats going
> wrong.
> geomAct = new
> QAction(QIcon(":/images/Aircarft1.bmp"),tr("Start&Geom"),this);
> where this icon is present in images folder and also there's a qrc file
> where i am specifying the icons path.
> I have tried with png,jpg etc but none of them are being visible.
Is the path really right? Look in your .qrc file and see the line really
contains "images"
<qresource prefix="/images">
-- David
More information about the Qt-interest-old
mailing list