{"id":223,"date":"2025-09-02T22:35:00","date_gmt":"2025-09-02T14:35:00","guid":{"rendered":"https:\/\/ziyuan.work\/?p=223"},"modified":"2025-11-12T14:58:14","modified_gmt":"2025-11-12T06:58:14","slug":"randkey-qt-%e7%94%9f%e6%88%90%e9%9a%8f%e6%9c%ba%e5%af%86%e7%a0%81-%e6%a1%8c%e9%9d%a2%e7%ab%af%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/ziyuan.work\/?p=223","title":{"rendered":"RandKey-QT \u751f\u6210\u968f\u673a\u5bc6\u7801 \u684c\u9762\u7aef\u5de5\u5177"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><h2>RandKey-QT <strong><a href=\"https:\/\/github.com\/foreverlz1111\/RandKey-QT\">-&gt; Github Page<\/a><\/strong><\/h2>\n<p>\u89e3\u51b3\u9700\u8981\u751f\u6210\u968f\u673a\u5b57\u7b26\u7684\u71c3\u7709\u4e4b\u6025<\/p>\n<p>Solve the urgent need to generate random characters &amp;&amp; numbers temporatily<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/foreverlz1111\/RandKey-QT\/blob\/main\/screenshot-zh.png?raw=true\" alt=\"ScreenShot\">\n<img decoding=\"async\" src=\"https:\/\/github.com\/foreverlz1111\/RandKey-QT\/blob\/main\/screenshot-en.png?raw=true\" alt=\"ScreenShot\"><\/p>\n<h2>\u7528\u6cd5 Usage<\/h2>\n<p>\u786e\u4fdd\u7528\u7684\u662fQt 6.8\u3002 make sure Qt version is 6.8.<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/foreverlz1111\/RandKey-QT\/releases\">\u4e0b\u8f7d\u4e8c\u8fdb\u5236 Download binary<\/a>, \u76f4\u63a5\u8fd0\u884c run directly.<\/p>\n<\/li>\n<li>\n<p>\u6216\u8005\u514b\u9686\u8fd9\u4e2a\u6587\u4ef6\u5939\uff0c\u7136\u540e\u5728<em><strong>Qt craetor<\/strong><\/em>\u6253\u5f00\u3002 or clone this repository, open in <em><strong>Qt craetor<\/strong><\/em>.<\/p>\n<\/li>\n<\/ul>\n<h2>\u56fd\u9645\u5316 International<\/h2>\n<ol>\n<li>\n<blockquote>\n<p>lupdate . RandKey_QT_en_GB.ts<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<blockquote>\n<p>linguist RandKey_QT_en_GB.ts<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n<p>\u6216\u8005\u4f7f\u7528\u4ee5\u4e0b\u811a\u672c or use the below Shell script:<\/p>\n<pre><code>TS_DIR=&quot;.\/RandKey-QT&quot; # .ts file\nQM_DIR=&quot;$TS_DIR\/translations&quot; # output .qm dir\n\nfor tsfile in &quot;$TS_DIR&quot;\/*.ts; do\n    if [ -f &quot;$tsfile&quot; ]; then\n        echo &quot;Updating $tsfile &quot;\n        lupdate . -ts &quot;$tsfile&quot; -no-obsolete\n    fi\ndone\nthis\nfor tsfile in &quot;$TS_DIR&quot;\/*.ts; do\n    filename=$(basename &quot;$tsfile&quot; .ts)   \n    qmfile=&quot;$QM_DIR\/$filename.qm&quot;      \n    echo &quot;Generating $qmfile &quot;\n    lrelease &quot;$tsfile&quot; -qm &quot;$qmfile&quot;\ndone\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-7"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ziyuan.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":6,"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/ziyuan.work\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/ziyuan.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ziyuan.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ziyuan.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}