Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Maintaining a consistent width in QBoxLayout

$
0
0
I have a QHBoxLayout of 52 QPainter rectangles. I want the layout to be freely (or almost freely) resizable with the one requirement that the rectangles should have the exact same width. Right now, if I choose a size of (for example) 52 * 32 = 1664 pixels with one-pixel separators, some of the individual rectangles end up 30 pixels wide, and others 31. In my program, the effect of this inconsistency is quite noticeable.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>