Hi,
I want to change widget background to a svg.
I know how to set images to background of the widget.
Any help on this.
Regards,
~Sanjay
Hi,
I want to change widget background to a svg.
I know how to set images to background of the widget.
Any help on this.
Regards,
~Sanjay
Something like this:
Qt Code:
img.fill(0); svg.render(&painter);To copy to clipboard, switch view to plain text mode
and after paint QImage to widget. Or use QSvgWidget
I think you can also use QPixmap("file.svg") for use svg icon plugin.
Last edited by SABROG; 29th June 2009 at 11:07.
Ok.
That can be possible.
Can i do something like this.
MyWindow: piblic QMainWIndow, public QSvgWidget
i.e inherting mywindow from both the QMainWindow and QSvgWidget.
I know this is possible, but compiler gives the warning as QMainWIndow and QSvgWidget are derived from QWidget.
Regards,
~Sanjay
Bookmarks