Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

在Windows下使用特定中文標準數字格式會產生數字顯示問題 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

woofsauce
Copy link
Contributor

當Windows 系統數字設定成圖一時,QTBUG-85409會造成QWidget產生如圖二一堆奇奇怪怪的數字。複寫系統預設QLocale可以解決這個問題,不過不知道會不會影響其他QLocale相關的格式。

image
圖一: Standard digits設定更改為"〇一二三四五六七八九"

image
圖二: QT5 bug導致數字被更改成亂七八糟的格式

image
圖三: 更改預設的QLocale 後

QT has some weird behaviour where it would not only attempt to localize the
numbers in text hold by certain QT widget, but also doing it wrong for this
Chinese numbering format due to a bug.
@woofsauce woofsauce changed the title workaround QTBUG-85409 by overwriting default locale 在Windows下使用特定中文標準數字格式會產生數字顯示問題 May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant