altairwei / altairwei/WizNotePlus

Win平台页面异常(标题栏黑框、鼠标点击偏移)与解决方法

Open
#225 0 comments 0 reactions 0 assignees View on GitHub
tip
Dominant language
C++
Stars
598
Forks
90
PR merge metrics
No merged PRs in 30d

Description

# 问题描述
Win平台使用集显出现状态栏黑框与鼠标点击偏移,独显无此问题。
![2022-04-24_WizNotePlus页面Bug反馈](https://user-images.githubusercontent.com/70640997/164968065-352f7595-9d1e-4697-9ec7-a8908ad3d0a8.png)

## 平台信息
平台:Win10(已测试20h2、21H2)
版本:WizNotePlus 2.10.2

## 问题原因
WizNotePlus基于QT平台开发,而QT平台图形显示依赖于openGL,openGL在Windows上默认可能无法正常工作。

# 解决方法
## 长话短说版

可以尝试以下几个解决办法:

1. 双显卡
尝试将WizNotePlus调度到独立显卡上;
2. 指定openGL选项(推荐)
通过以下途径指定openGL选项:
声明一个名为QT_OPENGL的环境变量,其值为angle,或software;

## 详细操作版
1. 关闭并退出WizNotePlus
关闭WizNotePlus,并在状态栏(通知栏)彻底退出
![2022-04-24_彻底退出WizNotePlus](https://user-images.githubusercontent.com/70640997/164968383-713c22ad-d2eb-479d-a9d3-7e59dac641e0.png)
3. 添加openGL环境变量
win+r打开运行,输入sysdm.cpl回车,打开<系统属性>→<高级>→<环境变量>→<系统变量>,添加一个名为QT_OPENGL的环境变量,其值为angle,或software。
操作如下图所示。
![2022-04-24_WizNotePlus添加环境变量](https://user-images.githubusercontent.com/70640997/164968846-f4c26c3f-f8c6-4033-bffe-bace9de022ea.png)
4. 重启WizNotePlus即可

## 附注
此解决方案来自同为QT开发的Vnote的issue[Strange GUI behaviors on Win (Win上异常的图形界面行为) #853](https://github.com/vnotex/vnote/issues/853),以上。感谢WizNotePlus作者的默默付出,以及提供此解决方案的Vnote作者,嘿嘿:)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.