[Qt-interest] QPushButton with SVG images
Tiago Correia
tiago at cnotinfor.pt
Thu May 28 16:34:30 CEST 2009
I've done that already. But I'm not using pro file, but I did include the
module in the project.
On Thu, May 28, 2009 at 2:55 PM, Heiko Steindl <heiko at kom.at> wrote:
> Hi!
>
> did you have this in your .pro file?
>
> QT += svg
>
> You'll also need a #include <QtSvg> in your source file and than it should
> work.
>
> I hope this helps. :)
>
> Best regards
>
> Heiko
>
> --
>
>
> Mit freundlichen Grüßen
>
> Heiko Steindl
>
> Computerhaus EDV-Handels Ges.m.b.H
> Wienerstrasse 35a
> 8605 Kapfenberg AUSTRIA
>
> Tel: +43 (0)3862 27777
> Fax: +43 (0)3862 27777 77
> Mobil: +43 (0)676 3727777
> E-Mail: heiko at kom.at
>
>
>
> Tiago Correia schrieb:
>
> 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
>
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing listQt-interest at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
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/1ae307d0/attachment.html
More information about the Qt-interest-old
mailing list