[Kde-games-devel] Constraining window size by widget size

Albert Astals Cid aacid at kde.org
Wed Mar 28 19:25:02 CEST 2007


A Diumenge 25 Març 2007, Kleag va escriure:
> Hello,
>
> In KsirK, I want to constraint the maximum size of the window by the size
> of its contained QGraphicsView (knowing that there is also status and tool
> bars and the chat/info widget that need some place). So, if the user tries
> to resize the window in either direction thus obtaining too much space
> around the main widget, it would be blocked.
>
> But I cannot find how to handle this kind of thing with th Qt API.
>
> Any idea ?

What about setting a fixed size (setFixedSize) to the main widget?

Albert

>
> Regards,
>
> Kleag




More information about the kde-games-devel mailing list