Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test :public QPaintDevice, public QWidget {
- public:
- //Метод от QPaintDevice, который требуется переопределить:
- QPaintEngine* paintEngine() const {
- //Что должно быть здесь?
- }
- };
- int main(int argc, char *argv[])
- {
- QApplication a(argc, argv);
- Test test;
- QPainter painter(&test);
- painter.drawLine(100, 100, 200, 200);
- test.show();
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement