DanielBorgesOliveira / onedrive_tray

OneDrive system tray program
GNU General Public License v3.0
113 stars 21 forks source link

qt6 Painter not active error #40

Closed gokomer closed 1 year ago

gokomer commented 1 year ago

Hello,

I've compiled this for qt6 and icons are missing and I get the following errors. Any idea how to fix it?

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted

edit: I played some more and it looks like these errors caused because QPixmap was empty. If I set QPixmap pixmap(imageName) to QPixmap pixmap(128,128) i get an empty icon and can fill it with solid colors. I couldn't make svg work.

DanielBorgesOliveira commented 1 year ago

hi @gokomer

Could you share the changes you have made? Maybe this can help migrating the code to QT6.

slowsage commented 9 months ago

In case you are using arch: sudo pacman -S qt5-svg.

Should be a dependency in PKGBUILD.