qt - How does QWidget size when used as a window? -


Many examples on trolltech use QWindget as main window instead of QMainWindow for simple Qt applications.

Now I need a simple window with a single content widget (QGlWidget) that covers the entire customer area.

However, when I show a QWidget window with a single content window, it automatically resizes itself from small

if I QWidget without child The parent window makes it a good big default size.

I do not want to resort to using layouts for a single child window:

< P> I understand that you use QWidget to display your QGIWidget. Try calling your QGIWidget's show method directly (if your QGIWidget class refers to QWidget), QT will create window decorations for you.

Otherwise if you really need to fit your widget inside each other, and its size, you have to use a layout.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -