Home > Net >  Creating a new drawing device based on QPS (Qt Painting System)
Creating a new drawing device based on QPS (Qt Painting System)

Time:10-24

Good afternoon!

There is a need to create a class of a new drawing device similar to QWidget, QPrinter, ... !

The goal is to write a class that will allow you to load an svg file into it and generate a list of QPainterPath::ElementType:: primitives... to convert them to g-code! I understand that this is an interaction of QPainter classes QPaintEngine QPaintDevice ! But the question is precisely in the nuances of interaction and implementation!

Who has experience writing such classes? Consultations are needed in the course of implementation!

Here's what I have at the moment: https://gitlab.com/z34x/codemaker.git

I understand that this is incorrect code! But I don't understand how to implement all the virtual methods correctly so that the Qt Painting System works correctly!

Help me... !!! :)))))

Best regards, Yuri.

CodePudding user response:

Good day !

Ооооk ! :)

We will consider this question not relevant ! :)))

Sincerely, Yuri.

CodePudding user response:

Next question ...

Who can tell you how to determine the points of intersection of lines in Qt when drawing SVG ? Are there any standard methods ?

Best regards, Yuri.

  • Related