no message

qt6
zcy 2021-10-05 13:50:16 +08:00
parent 59d732cb48
commit 315687fd6c
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,6 @@ QssTtitleBar::QssTtitleBar(QWidget *parent ,
QFile file(":/qss/css/QssTitleBar.css"); QFile file(":/qss/css/QssTitleBar.css");
if (!file.open(QIODevice::ReadOnly)){ if (!file.open(QIODevice::ReadOnly)){
qDebug()<<"error bar"; qDebug()<<"error bar";
exit(0);
} }
QTextStream in(&file); QTextStream in(&file);
QString css = in.readAll(); QString css = in.readAll();
@ -278,7 +277,6 @@ QssMainWindow::QssMainWindow(QWidget *parent/* = 0*/, Qt::WindowFlags flags/* =
QFile file(":/qss/css/QssMainWindow.css"); QFile file(":/qss/css/QssMainWindow.css");
if (!file.open(QIODevice::ReadOnly)){ if (!file.open(QIODevice::ReadOnly)){
qDebug()<<"error bar"; qDebug()<<"error bar";
exit(0);
} }
QTextStream in(&file); QTextStream in(&file);
QString css = in.readAll(); QString css = in.readAll();

2
Qss.h
View File

@ -26,7 +26,9 @@ class QPushButton;
class QLabel; class QLabel;
class QMouseEvent; class QMouseEvent;
#define STANDARD_DPI 96.0 #define STANDARD_DPI 96.0
#ifndef WM_DPICHANGED
#define WM_DPICHANGED 0x02e0 #define WM_DPICHANGED 0x02e0
#endif
typedef enum{ typedef enum{