/*************************************************************************************************** ** Licence : This software is owned by Marport France. It cannot be used, duplicated or disclosed ** in full or in part without the written authorization of the owner. ** ** Author: Hugh ** Date: 18/12/2019 12 2019 ***************************************************************************************************/ #include "Widget.h" #include #include Widget::Widget(QWidget *parent) : QWidget(parent) { const char* kMarkerSvg = R"( )"; m_renderer = new QSvgRenderer(QByteArray(kMarkerSvg), this); } void Widget::paintEvent(QPaintEvent* event) { QPainter p(this); QRectF r(200,200, 200,200); m_renderer->render(&p, r); p.drawRect(r); } Widget::~Widget() { }