[Qt-interest] How to make a top level window unresizable?
Ankit Agarwal
ankit17.ag at gmail.com
Wed Feb 18 07:02:03 CET 2009
Hi,
I think that this can be achived by setting the sizePolicy and making the
minSize and maxSize of the window same.
On Wed, Feb 18, 2009 at 11:29 AM, Dong Tiger <idlecat511 at gmail.com> wrote:
> Hi,
>
> I am trying to make a Qt top level window unresizable, that is, user can't
> drag the border to change the window's size.
>
> I didn't find any api in Qt4 for this. So I need to call XChangeProperty to
> remove "_NET_WM_ACTION_RESIZE" from property "_NET_WM_ALLOWED_ACTIONS"
> directly.
>
> It sounds simple. But I found this property is modified after the window is
> shown (Within showEvent, it's empty.)
>
> So I doubt this is a right approach. Any suggestion?
>
> --
> Tiger
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090218/69635995/attachment.html
More information about the Qt-interest-old
mailing list