mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-16 02:22:22 +08:00
parent
397d941f2f
commit
c5d3dadbbb
@ -1,6 +1,8 @@
|
||||
#include "big_image.h"
|
||||
#include "qapplication.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QScreen>
|
||||
#include <QtConcurrent>
|
||||
|
||||
big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
||||
@ -25,6 +27,8 @@ big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
||||
|
||||
void big_image::setimage(QPixmap image)
|
||||
{
|
||||
QScreen *screen = QApplication::primaryScreen();
|
||||
image.setDevicePixelRatio(screen->devicePixelRatio());
|
||||
m_image->setPixmap(image);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user