i have a widget and implemented a QpainetEvent;
inside that i write
{
Qpainter painter(this);
}

here i have a QLabel widget on my main widget
i want QPainter object of that QLabel insted of main widget
like
"QPainter painter(this)" instead of that statement can i write this statement "QPainter painter(label1)"