I've got a cross platform Qt app, and no matter how I tweak the UI, it always looks good on some platforms and bad on others, due to the differences between UI styles.
For example, margins seem to be universally set, even while the underlying elements shift in size dramatically from one platform to another.
What's the recommended way to handle this?
Probably the safest way is to have the most basic UI to start with. Personally I use the qt's css type of styling. Also make sure when you subclass your widgets, you properly override event methods (i.e. resizeEvent(...), hand off parameters to a super class when appropriate. etc) Following basic recommendations from the Qt Docs should do it. Another note on layouts, make sure you are using:
enum QSizePolicy::Policy
appropriately and your layouts flow well when resized etc, instead of using fixed positions...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With