PDA

View Full Version : QGLWidget Resize Problem



Sandip
27th February 2008, 14:42
Hi everybody,

I am new to this forum and qt programming also. I have written a small program which draws a simple 3d object. I am using QGLWidget for it. It is working fine. Now I am adding extra functionality by which user can resize it. Whenever user clicks on corner of widget and drags mouse, I am calling resize function by passing some values. I am facing a problem when shrinking size of glwidget. I have seen that it is not shrinking (width of widget) below some value. For example. 50.
Height is reduced below 50 but width is not reduced in any way.
Please help me. I stuck to this problem from last few days.

Thanks in advance.

wysota
27th February 2008, 16:14
The minimum width of a top level window is controlled by the window manager. There is not much you can do about it, you can only ask the window manager not to manage your window by passing proper hints in the widget constructor.

Sandip
28th February 2008, 07:47
The minimum width of a top level window is controlled by the window manager. There is not much you can do about it, you can only ask the window manager not to manage your window by passing proper hints in the widget constructor.

Thanks once again.

You are right. I made my widget subwindow.
Qt::SubWindow parameter worked for me.