[Qt-interest] QPushButton with SVG images

Tiago Correia tiago at cnotinfor.pt
Thu May 28 15:46:25 CEST 2009


Hi,
I'm using version 4.5.1 of Qt in Windows with Visual Studio 2008 SP1.

I'm trying to include an SVG as an icon in a QPushButton. I've made my UI
file on designer, selected my resource file and choose the SVG file to add
has Icon. In Designer, the preview form, works just fine. When compiling and
linking no error. But when running the application, I get the error, on the
line where a QPixmpa is trying be be built by using the file name of the SVG
resource and parameter.

Any ideia you to solve this problem, without converting the SVG to PNG?

-- 
Tiago Correia
chief technology officer

cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela Tecnologia
www.cnotinfor.pt
Telefone: +351 239 499 231

Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de
Interactividade, Comunicação e Aprendizagem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090528/9440da82/attachment.html 


More information about the Qt-interest-old mailing list