先来看下bug的提示

ASSERT: “window == topLevelWindow || topLevelWindow->isAncestorOf(window, QWindow::ExcludeTransients)” in file painting\qbackingstore.cpp, line 252

Qt界面ASSERT:window == topLevelWindow断言错误

接下来分析哪里出错了

发现是qt的内核的断言,一筹莫展。最后在外网查到这个bug的产生条件,
是因为使用了双屏。
Qt界面ASSERT:window == topLevelWindow断言错误

解决办法

  1. 不使用双屏
  2. 把qtcreator和你的界面程序在同一个屏内打开

只是无聊的记录,希望其他人没有如此的烦恼

相关文章:

  • 2021-10-18
  • 2021-07-27
  • 2021-10-15
  • 2022-12-23
  • 2021-09-13
  • 2022-01-10
  • 2021-12-11
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-08-27
  • 2022-12-23
相关资源
相似解决方案