Search code examples
rubyqtqt4qwidgetaspect-ratio

How to force Qt widgets to maintain equal height and width?


I'm using Ruby Qt bindings.

I'm trying to make a square widget (checker board), but it doesn't seem to work. This is the code that I tried

What is the proper way to making a widget that maintains its aspect ratio?


Solution

  • See this question: How to maintain widget's aspect ratio in Qt?