Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev cpp #19

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Dev cpp #19

wants to merge 19 commits into from

Conversation

BJCode-git
Copy link

This is a c++ version of your project

Copy link

@lcp964 lcp964 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

11

@zhmou
Copy link

zhmou commented Jul 12, 2022

Thank you very much for your contribution!
Although your code is not currently merged, it has been really useful to me.

However, on my computer(Win11 22H2 and Qt6.3.1), it displays slightly different from the Python version:
image
The MainWindow is much bigger, this seems to be related to Qt6's changes (forcing High-DPI scaling always enabled.)

Anyway, thank you for the code!

Tips:
for later users who want to try this branch, a reminder that the code in this PR seems built on Qt5.

If you are using Qt6 or later, Firstly, you need to add a line to your project file (QT += core5compat) to call the functions in QTextCodec. In addition, argument to the setFont() function in Qt6 needs to be enum types instead of int (to find how to change them, please check https://doc.qt.io/qt-5.15/qfont.html#Weight-enum)
And in this line of code, replaces the depreciated QApplication::Desktop() with QApplication::primaryScreen() in Qt6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants