Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

add set title font and set title icon size function to project(I've done these by change to a fixed value) #68

@Aatrox4

Description

@Aatrox4

I've been using this project as my main window super class for a while. And recently I found that the Icon and title font are smaller than other contents of my application(btw, I develop on windows 11 and screen resolution is 2k). And I have tried to find any convenient functions to set these, but did not. So I have to modify the src files to do these. And below are what I modified to change icon size and title font.

To change title font, go to titlewidget.cpp, line 87, modify TitleWidget::titleFont()
To change title icon size, first, go to qgoodcentralwidget.cpp, line 75, change pix_size to any larger number(mine is 48, original is 16). Without changing pix_size, your icon will be blurry.
Then go to iconwidget.cpp, line 27, change ICONWIDTH and ICONHEIGHT to any larger number(mine is 24, original is 16). there you will get a bigger icon. You may find the icon and the window title are not aligned. Go to iconwidget.cpp line 80, change the drawPixmap second parameter, higher the position lower.

And you may also need to change caption button width(qgoodcentralwidget.cpp line 54) when you change icon size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions