문제

How can I resize, automatically, any widget, to the paintEvent's method generated content dimensions?

도움이 되었습니까?

해결책

Don't try to do that. Resizing would generate a new paint event, and in the best case you would end up with flickering in your UI. You will need to calculate your widget size outside the paint event.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top