fix: render error for tag icons in AppInfoPage

SVG render error in Qt6, so fallback to use PNG;
add CustomLabel for render PNG not blurry with HIDPI

Log: add PNG resources for tag icons;
add CustomLabel class for PNG rendering
This commit is contained in:
2025-06-13 01:23:25 +08:00
parent c5b5b6d3ba
commit fd1f13f59d
18 changed files with 207 additions and 78 deletions

View File

@@ -0,0 +1,19 @@
#ifndef CUSTOMLABEL_H
#define CUSTOMLABEL_H
#include <QLabel>
class CustomLabel : public QLabel
{
Q_OBJECT
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
public:
explicit CustomLabel(QWidget *parent = nullptr,
Qt::WindowFlags f = Qt::WindowFlags());
virtual QPixmap pixmap() const;
virtual void setPixmap(const QPixmap &pixmap);
};
#endif // CUSTOMLABEL_H