# 【历史讨论】GoldenDict-ng 基于Qt5.15.2/Qt6.X版本

**URL:** <https://forum.freemdict.com/t/topic/11495>\
**Category:** GoldenDict-ng\
**Tags:** goldendict\
**Created:** [2022 年3 月 14 日 13:17 UTC](https://forum.freemdict.com/t/topic/11495 "2022-03-14T13:17:30Z")\
**Posts on this page:** 20\
**Page:** 136

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年10 月 20 日 16:01 UTC](https://forum.freemdict.com/t/topic/11495/2856 "2023-10-20T16:01:22Z")

</div>

> [@关于系统默认字体的选择](https://forum.freemdict.com/t/topic/24188/3):
>
> 我倒是觉得微软雅黑挺清晰的（4k屏）。 之前装过黑苹果，mac不知道用了什么机制，字很粗很糊，字典里的各种字体都有种被加粗的感觉，后来找到设置关了，字体渲染表现也还是不如Windows里的。 linux系统找了几种字体，也还是雅黑更舒服，可能看习惯了吧

建议 GoldenDict 网页的默认字体样式修改为：

```auto
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;

```

修改前：

 ![截屏2023-10-20 23.58.22](https://forumcdn.freemdict.com/uploads/default/original/3X/9/0/90bbf8c2f87ee48acba64863960a8df546351cc8.png)

修改后：

 ![截屏2023-10-20 23.57.57](https://forumcdn.freemdict.com/uploads/default/original/3X/f/a/fa5aed91d216df7e9e6d53b5b3601448152bd72a.png)

---

<div class="post-metadata">

作者： ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
发布日期： [2023 年10 月 21 日 00:58 UTC](https://forum.freemdict.com/t/topic/11495/2857 "2023-10-21T00:58:34Z")

</div>

看起来不错，可以来个PR

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年10 月 21 日 02:10 UTC](https://forum.freemdict.com/t/topic/11495/2858 "2023-10-21T02:10:59Z")

</div>

我这边不方便。

---

<div class="post-metadata">

作者： ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
发布日期： [2023 年10 月 21 日 13:40 UTC](https://forum.freemdict.com/t/topic/11495/2859 "2023-10-21T13:40:39Z")

</div>

> <https://github.com/xiaoyifang/goldendict-ng/pull/1254/files>

---

<div class="post-metadata">

作者： ![freeeMdict](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@freeeMdict](https://forum.freemdict.com/u/freeeMdict)\
发布日期： [2023 年10 月 24 日 18:24 UTC](https://forum.freemdict.com/t/topic/11495/2860 "2023-10-24T18:24:27Z")

</div>

![image](https://forumcdn.freemdict.com/uploads/default/original/3X/4/0/40df890295981055fd4e05079d8682a785ee4183.jpeg)  
请问这3块黑色的怎么调呢 article-style.css 没有偏黑色的背景。  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/9/6/965aa45e539e7d4e29a6a71ffd395dbda92e43e3.png)

---

<div class="post-metadata">

作者： ![slbtty](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/slbtty/32/19175_2.png) [@slbtty](https://forum.freemdict.com/u/slbtty)\
发布日期： [2023 年10 月 24 日 18:54 UTC](https://forum.freemdict.com/t/topic/11495/2861 "2023-10-24T18:54:03Z")

</div>

在 `article-style.css` 旁边放一个 `qt-style.css`

```auto
#wordList,
#dictsPane,
#dictsList,
#historyPane,
#historyList,
#favoritesPane,
#favoritesTree {
  background: #eaf0f8;
  color: darkblue;
}

MainWindow #translateLine, MainWindow #wordList {
    color: white;
    background-color: #000;
}

```

[https://xiaoyifang.github.io/goldendict-ng/topic\_userstyle/](https://xiaoyifang.github.io/goldendict-ng/topic_userstyle/)  
具体内容参考 `qt-***.css` [https://github.com/xiaoyifang/goldendict-ng/tree/staged/src/stylesheets](https://github.com/xiaoyifang/goldendict-ng/tree/staged/src/stylesheets)

---

<div class="post-metadata">

作者： ![独行瞏瞏](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/%E7%8B%AC%E8%A1%8C%E7%9E%8F%E7%9E%8F/32/6802_2.png) [@独行瞏瞏](https://forum.freemdict.com/u/%E7%8B%AC%E8%A1%8C%E7%9E%8F%E7%9E%8F)\
发布日期： [2023 年10 月 25 日 09:42 UTC](https://forum.freemdict.com/t/topic/11495/2862 "2023-10-25T09:42:11Z")

</div>

![无标题视频——使用Clipchamp制作](https://forumcdn.freemdict.com/uploads/default/original/3X/e/6/e603155b8fd14a001f77a478473790412eb0388a.gif)  
版本：Goldendict-ng 23.10.01-alpha.20231024.8905de63  
Qt 6.6.0 Visual C++ Compiler 192930152 windows winnt 10.0.22621 x86\_64-little\_endian-llp64  
Flags:USE\_XAPIAN MAKE\_ZIM\_SUPPORT USE\_ICONV MAKE\_CHINESE\_CONVERSION\_SUPPORT NO\_TTS\_SUPPORT no\_ffmpeg\_player  
最新版GoldenDict M大系列词典无法单击跳转。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年10 月 25 日 10:39 UTC](https://forum.freemdict.com/t/topic/11495/2863 "2023-10-25T10:39:49Z")

</div>

```auto
VM407:1 Uncaught ReferenceError: gdMakeArticleActive is not defined
    at <anonymous>:1:126

```

需要检查 `gdMakeArticleActive` 已经定义，或者延迟执行，有时候直接报错。

[articleview.cc#L560](https://github.com/xiaoyifang/goldendict-ng/blob/staged/src/ui/articleview.cc#L560)

```auto
if(elem!=undefined){elem.scrollIntoView(true);} gdMakeArticleActive('%2',true);"

```

 ![截屏2023-10-25 18.38.41](https://forumcdn.freemdict.com/uploads/default/original/3X/0/1/0106915865211b7b42bcdd201803d414f1d15c1b.png)

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年10 月 25 日 11:20 UTC](https://forum.freemdict.com/t/topic/11495/2864 "2023-10-25T11:20:42Z")

</div>

直接把下面这个文件解压放到词典文件的目录就可以了。

[SW.js.zip](https://forum.freemdict.com/uploads/short-url/9bBIsogPeWJzplecIxc2cHhxZKI.zip) (464 Bytes)

---

<div class="post-metadata">

作者： ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
发布日期： [2023 年10 月 26 日 09:03 UTC](https://forum.freemdict.com/t/topic/11495/2865 "2023-10-26T09:03:48Z")

</div>

具体什么原因，后续我看能不能直接gd-ng支持

---

<div class="post-metadata">

作者： ![独行瞏瞏](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/%E7%8B%AC%E8%A1%8C%E7%9E%8F%E7%9E%8F/32/6802_2.png) [@独行瞏瞏](https://forum.freemdict.com/u/%E7%8B%AC%E8%A1%8C%E7%9E%8F%E7%9E%8F)\
发布日期： [2023 年10 月 26 日 12:05 UTC](https://forum.freemdict.com/t/topic/11495/2866 "2023-10-26T12:05:07Z")

</div>

![录屏2023-10-26 19.46.10](https://forumcdn.freemdict.com/uploads/default/original/3X/a/3/a379d4d0fad6b482a98170707c845357173c5e84.gif)  
Goldendict 23.05.01-WuYi.230501.6c8b0c1c  
macos darwin 23.0.0 Qt 6.4.3 arm64-little\_endian-lp64  
Clang 13.0.0 (clang-1300.0.29.30)  
Flags: MAKE\_ZIM\_SUPPORT MAKE\_CHINESE\_CONVERSION\_SUPPORT  
Mac 上这个版本没问题，应该是某些改动导致的。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年10 月 26 日 12:22 UTC](https://forum.freemdict.com/t/topic/11495/2867 "2023-10-26T12:22:15Z")

</div>

![截屏2023-10-26 20.15.30](https://forumcdn.freemdict.com/uploads/default/original/3X/9/e/9e580cfe668ca86c070524b2e07967d02031cf86.png)

注意上图说明，`location.href` 的表现很奇怪。

另外这个脚本里还有图片路径错误，只能词典作者本人来做兼容。

---

<div class="post-metadata">

作者： ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
发布日期： [2023 年10 月 27 日 00:36 UTC](https://forum.freemdict.com/t/topic/11495/2868 "2023-10-27T00:36:07Z")

</div>

应该跟事件执行的先后顺序也有点关系。  
这个链接点击的时候，click中执行togPg的方法，然后又是个a链接。  
如果a的链接执行的快(gd-ng有对a的链接额外注册点击事件)，应该就显示正常。  
如果是tgPage中的跳转location跳转先执行，效果上就是无法跳转。

修改方式，也可以直接置空togPg的方法。

```auto
function togPg(thisBtn, imgId) {
}

```

---

<div class="post-metadata">

作者： ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
发布日期： [2023 年11 月 1 日 04:05 UTC](https://forum.freemdict.com/t/topic/11495/2869 "2023-11-01T04:05:27Z")

</div>



---

<div class="post-metadata">

作者： ![见贤2思齐](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E8%A7%81/f08c70/32.png) [@见贤2思齐](https://forum.freemdict.com/u/%E8%A7%81%E8%B4%A42%E6%80%9D%E9%BD%90)\
发布日期： [2023 年11 月 8 日 14:45 UTC](https://forum.freemdict.com/t/topic/11495/2870 "2023-11-08T14:45:42Z")

</div>

全文搜索功能不能用！

---

<div class="post-metadata">

作者： ![见贤2思齐](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E8%A7%81/f08c70/32.png) [@见贤2思齐](https://forum.freemdict.com/u/%E8%A7%81%E8%B4%A42%E6%80%9D%E9%BD%90)\
发布日期： [2023 年11 月 8 日 14:52 UTC](https://forum.freemdict.com/t/topic/11495/2871 "2023-11-08T14:52:59Z")

</div>

全文检索，能用吗？  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/5/4/54c42491f32a95999b92b978e91a9519d852feb3.png)  
我都更新了，还是不能用。怎么回事？

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年11 月 11 日 04:18 UTC](https://forum.freemdict.com/t/topic/11495/2872 "2023-11-11T04:18:35Z")

</div>

菜单配置项-全文搜索，勾选：允许对以下格式词典进行全文检索。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年11 月 12 日 04:43 UTC](https://forum.freemdict.com/t/topic/11495/2873 "2023-11-12T04:43:33Z")

</div>

v3 格式的 mdx 词典，GD 不支持，在添加阿拉伯语汉语大词典后，索引界面显示『正在加载…』，但长时间无法自己结束，只能从进程管理器强制退出。

> [@Mdxbuilder4.0创建的mdd和mdx文件解压 打包（阿汉 阿英资源分享）](https://forum.freemdict.com/t/topic/24673):
>
> 由于本人和同学工作都比较繁忙，又同时都在国外，网络很差，近来才把词典搞完。特把资源分享给大家，因为阿语本身语料库就少，又没有相关词典，真的挺折磨的，不知道那位大佬会不会介意 upside_down_face因为他真的很久没出现了…而且应该不会有人再拿去又搞注册码再转卖吧… 链接：[https://pan.baidu.com/s/1bhtxbEeW9i4gj1go\_G7CHA?pwd=5678](https://pan.baidu.com/s/1bhtxbEeW9i4gj1go_G7CHA?pwd=5678) …

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2023 年11 月 12 日 04:59 UTC](https://forum.freemdict.com/t/topic/11495/2874 "2023-11-12T04:59:15Z")

</div>

可以用这本词典测试。

[伊斯兰教法术语.mdx.zip](https://forum.freemdict.com/uploads/short-url/zFxwKMekY5zKz9fz6y4z5jb3iEM.zip) (1.0 MB)

---

<div class="post-metadata">

作者： ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
发布日期： [2023 年11 月 12 日 11:04 UTC](https://forum.freemdict.com/t/topic/11495/2875 "2023-11-12T11:04:47Z")

</div>

应该会有一个bad allocation的弹窗。估计被挡住了。

[上一页](https://forum.freemdict.com/t/topic/11495.md?page=135)

[下一页](https://forum.freemdict.com/t/topic/11495.md?page=137)
