This commit is contained in:
zhuzichu 2023-12-14 09:41:14 +08:00
parent e5668869b9
commit 6da8117056
2 changed files with 1 additions and 2 deletions

View File

@ -152,7 +152,6 @@ void FluFrameless::componentComplete(){
_window->setFlag(Qt::FramelessWindowHint,true);
_window->installEventFilter(this);
#ifdef Q_OS_WIN
qDebug()<<"---------";
_nativeEvent =new FramelessEventFilter(_window);
qApp->installNativeEventFilter(_nativeEvent);
HWND hWnd = reinterpret_cast<HWND>(_window->winId());

View File

@ -161,7 +161,7 @@ void FluentUI::registerTypes(const char *uri){
void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){
#ifdef Q_OS_WIN
QFont font;
font.setFamily("Microsoft YaHei UI");
font.setFamily("微软雅黑");
QGuiApplication::setFont(font);
#endif
FluApp* app = FluApp::getInstance();