Qt - creating QPainter
Hello, i'm trying to rewrite method paintEvent in my programm and change it. void MainWindow::paintEvent(QPaintEvent *event) { QRegion reg = this->bgPixmapHandle->rect(); QPainter painter(this); painter.setClipRegion(reg); painter.drawImage(bgPixmapHandle->rect(), bgPixmapHandle); painter.end(); } Here i try to ch...