Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange GUI behaviors on Win (Win上异常的图形界面行为) #853

Closed
tamlok opened this issue Jun 16, 2019 · 6 comments
Closed

Strange GUI behaviors on Win (Win上异常的图形界面行为) #853

tamlok opened this issue Jun 16, 2019 · 6 comments
Labels

Comments

@tamlok
Copy link
Member

tamlok commented Jun 16, 2019

VNote requires openGL and it may not work well on Windows by default.

Strange behaviors include:

  • Interface freezes and does not response (especially in read mode);
  • Widgets are out of order after maximizing and restoring the main window;
  • No cursor in edit mode;
  • Menus are not clickable in full screen mode.

There are several ways to solve this issue:

  • Try to assign an integrated display card to VNote if available;
  • Try to update the driver of display card;
  • Specify openGL option to use by doing either of these:
    • Declare a system environment variable named QT_OPENGL and set its value to one of desktop, or angle, or software;
    • In Settings dialog of VNote, select one of the openGL option and apply.

Restart of VNote is needed and it is recommended to close all the notes before trying to specify openGL option.

VNote依赖于openGL,而后者在Windows上默认可能无法正常工作。

一些奇怪的行为包括:

  • 界面冻结,无响应(特别是阅读模式);
  • 在最大化并还原主窗口后,窗口部件错位显示;
  • 在编辑模式无法看到光标;
  • 在全屏下,菜单无法点击。

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

  • 如果是双显卡,可以尝试将VNote调度到集成显卡上;
  • 可以尝试更新显卡驱动;
  • 通过以下任意途径指定openGL选项(可能需要尝试多次以找到正确的选项):
    • 声明一个名为QT_OPENGL的环境变量,其值为desktop, 或angle,或software
    • 在VNote的设置对话框里面,指定一个openGL的值,重启VNote看是否有效;

以上操作需要重启VNote以生效,而且建议在尝试openGL选项之前关闭所有笔记。

@chao-sun01io
Copy link

遇到同样的问题,指定显卡驱动为集显没有用,但是设置opengl为SoftwareOpenGL有用

@sunshine-zkf
Copy link

遇到软件无法缩小后,在VNote的设置对话框里面,指定一个openGL的值,重启VNote后,VNote刚进入就闪退了,删除软件重新安装也无法进入。

@tamlok
Copy link
Member Author

tamlok commented Dec 17, 2020

@sunshine-zkf 是VNote 2.0吧?去到c:\users\xxx\AppData\Roaming\VNote下面,打开session.ini,把里面的[last_opened_files]整个小节删掉。如果不懂操作,可以直接删除session.ini,后面需要重新导入以前的笔记本。

@sunshine-zkf
Copy link

@sunshine-zkf 是VNote 2.0吧?去到c:\users\xxx\AppData\Roaming\VNote下面,打开session.ini,把里面的[last_opened_files]整个小节删掉。如果不懂操作,可以直接删除session.ini,后面需要重新导入以前的笔记本。

非常感谢博主如此快的回复,按你的方法可以进入笔记了,但是设置OpenGL值后,重启依然未解决全屏不能缩小的问题。

@tamlok
Copy link
Member Author

tamlok commented Dec 17, 2020

@sunshine-zkf 尝试新的值前先不要打开笔记,然后多试几个值,每个都试一下。

@westfly
Copy link

westfly commented Jun 7, 2021

声明一个名为QT_OPENGL的环境变量,其值为desktop 

好使

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants