Giter VIP home page Giter VIP logo

Comments (4)

czyt1988 avatar czyt1988 commented on August 13, 2024

已经修正 ,只需加一句即可,已经提交,pull一下即可

void updateSize(SAWindowButtonGroup *par)
    {
        par->setFixedSize(sizeHint());

from saribbon.

HaojieTian avatar HaojieTian commented on August 13, 2024

OK了,十分感谢!

from saribbon.

HorrZzz avatar HorrZzz commented on August 13, 2024

额,没看懂;我也是刚开始了解SARibbon,请问怎么才能修改 最小化 最大化 关闭按钮的大小呢?在高分屏上默认的按钮显示太小了....

from saribbon.

czyt1988 avatar czyt1988 commented on August 13, 2024

额,没看懂;我也是刚开始了解SARibbon,请问怎么才能修改 最小化 最大化 关闭按钮的大小呢?在高分屏上默认的按钮显示太小了....

正常来讲,qt会自动处理高分屏的问题,目前最新版已经在4k屏,且是双屏幕上测试过没问题

要应对高分屏需要如下几个准备:

1、main函数的QApplication创建之前,设置一个静态属性AA_EnableHighDpiScaling

int main(int argc, char* argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
    QApplication a(argc, argv);
....
}

2、Qt版本保证在Qt5.14以上,Qt5.14修正了Qt自身高分屏的bug

from saribbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.