选中内容(绿色)时除了会搜索文章名,还会搜索文章内容
点击结果中的文章名进入文章界面后可以按Ctrl+F在页面内搜索
  • 版权:CC BY-SA 4.0
  • 创建:2022-03-02
  • 更新:2022-03-04


运行退出时偶尔报错,不是 100% 复现

[1] 759959 segmentation fault (core dumped) python
或者
QObject::startTimer: Timers can only be used with threads started with QThread

原因可能有很多,这里遇到的问题原因是使用了

  1. app.installEventFilter(eventFilter)

退出前没有 remove,需要调用 app.removeEventFilter(eventFilter) 即可
尽管 https://doc.qt.io/qt-5/qobject.html#removeEventFilter 这里说了当对象摧毁时会自动将其移除,可能是对app这个对象特殊?

  1. void QObject::removeEventFilter(QObject *obj)
  2. Removes an event filter object obj from this object. The request is ignored if such an event filter has not been installed.
  3. All event filters for this object are automatically removed when this object is destroyed.
  4. It is always safe to remove an event filter, even during event filter activation (i.e. from the eventFilter() function).
文章有误?有想法想讨论?查看或者发起勘误/讨论 主题
(发起评论需要先登录 github)

/wallpaper/wallhaven-g8wry7.jpg