Giter Site home page Giter Site logo

Comments (9)

cmbant avatar cmbant commented on July 26, 2024

Explicitly setting the window font using setStyleSheet("* {font-size:8pt;}") may fix this.

from cobaya.

cmbant avatar cmbant commented on July 26, 2024

Should be fixed in 667cb0d at least for Windows. Worth checking on other systems.

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 26, 2024

Looks tiny in my system (Kubuntu 18.04 with Plasma 5.12). Maybe Windows and Linux scale fonts and window elements in two different ways? Investigating...

from cobaya.

cmbant avatar cmbant commented on July 26, 2024

Interesting, looks OK on the Ubuntu cosmobox VM

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 26, 2024

No clue. Normally, AFAIK, upscaling for high DPI screens is handled by leaving fonts to a reasonable size (~10-12) and applying a scaling factor (I guess ~2x for 4K).

from cobaya.

cmbant avatar cmbant commented on July 26, 2024

Is yours high DPI? Does 10pt or 12pt looks OK? If so might as well just use that.

from cobaya.

cmbant avatar cmbant commented on July 26, 2024

(it's probably partly that currently QT only handles integer scale factors, so your screen may be on the boundary scale of switching integers)

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 26, 2024

Somewhat high DPI. Qt most definitely handles fractional scale factors (my desktop interface is based on Qt and does. In any case, the correct strategy, that should work if there are no bugs, would be to let the app get from the OS both the font size for the different widgets (in your case, in the first pic, it apparently worked for the menu but not for the drop-down selectors) and also the scaling factor.

I am going to branch out, fix some hard-coded numbers I put there in the past (fixed pixel sizes), remove any mention to a font size, and let's try to go on from there, if you don't mind.

from cobaya.

JesusTorrado avatar JesusTorrado commented on July 26, 2024

Fixed by #45

from cobaya.

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.