Re:Understanding the Layout Process in Qt Widgets
by hermitcrab on Friday September 06, 2024 @05:33PM
(#41469880)
Managing widget size and layout in complex UIs is definitely one of the more challenging aspects of programming with Qt. But you usually get what you want with a bit of trial and error.
[ Parent
| on HN ]
Re:Understanding the Layout Process in Qt Widgets
by joezydeco on Friday September 06, 2024 @07:40PM
(#41470506)
Qt has a chronic problem with High DPI displays, especially when mixed with a lower DPI display in a multiple monitor situation. You will never get it 100% right and when you start shipping it to users that percentage will fall quickly.
Re:Understanding the Layout Process in Qt Widgets
by hermitcrab on Saturday September 07, 2024 @06:28AM
(#41472976)
Qt 6 is supposed to handle high DPI better. Does that not apply to multiple monitors? I have not noticed any issues.
Re:Understanding the Layout Process in Qt Widgets
by Remnant44 on Saturday September 07, 2024 @04:50PM
(#41476402)
I haven't had a high DPI issue with QT in quite a while. Early in QT 5, high DPI presented many problems, but they have been slowly settled over time, including by using sane defaults.
Source: I develop a QT widget app and develop on a workstation with mixed high and low DPI monitors.
Re:Understanding the Layout Process in Qt Widgets
by drivingmenuts on Friday September 06, 2024 @06:09PM
(#41470073)
I am running up against it now. While QT works on the major OSes, it somehow manages to not quite fit with the design of the OS - which drives me crazy. If I wanted it to sort of behave like a Windows app, I'd write Windows apps. Sadly, it's the best option for Python.
Re:Understanding the Layout Process in Qt Widgets
by hermitcrab on Friday September 06, 2024 @06:38PM
(#41470210)
I think Qt looks and feels pretty native on Windows. It doesn't look quite as native on Mac, but it's not far off.
Re:Understanding the Layout Process in Qt Widgets
by ramesh31 on Friday September 06, 2024 @05:39PM
(#41469917)
This is my stock response when anyone complains about CSS; consider the alternatives.
Re:Understanding the Layout Process in Qt Widgets
by 01HNNWZ0MV43FF on Friday September 06, 2024 @05:40PM
(#41469926)
I found Qt way easier around 2010, maybe the new flexbox stuff is good though?
Re:Understanding the Layout Process in Qt Widgets
by layer8 on Friday September 06, 2024 @05:43PM
(#41469943)
With CSS you typically need a lot of trial and error, and then there’s different browser implementations and versions on top of that.
Re:Understanding the Layout Process in Qt Widgets
by hermitcrab on Friday September 06, 2024 @06:36PM
(#41470200)
I prefer Qt layout to CSS any day.