W
W
wolk2014-11-08 18:50:30
Qt
wolk, 2014-11-08 18:50:30

How to draw on another widget?

There is a Graph class that inherits QWidget , it creates a QWidget *full_window object , how to draw from the Graph class on the full_window widget.
Why is everything like this? - The Graph class is written for plotting graphs. It builds a miniature on itself, but if you double click on it, a full_window appears ( full_window->show() ), on which I want to draw a full-fledged graph.
Thought to do so
QPainter *full = new QPainter(full_window);
But in the console there are notifications like

QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DancingOnWater, 2014-11-08
@DancingOnWater

Do not quite understand. If you have created a member widget. Then you just have to hide

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question