Squish tip of the week: How to validate Qt application layouts without relying on screenshot comparisons

Squish tip of the week: How to validate Qt application layouts without relying on screenshot comparisons

Did you know you can verify the visual layout of a Qt application without relying on fragile screenshot and pixel comparisons?

Testing an application means not only verifying it’s functionality, but also it’s visual layout.

Combining scripting logic with the minimumSizeHint property in Qt widgets, you can compare the minimum required size to the rendered Qt widget size in the application, determining if the layout is acceptable.

To learn more, read the article Layout validation for text truncation in Qt applications written by one of our leading Squish and Automated Testing experts, Tomasz Pawlowski.