Luc4
3rd May 2011, 10:42
Hi! I'm trying to create a screen driver for Qt Embedded. When a widget is created I should be called a function named createNativeWindow and some other functions like createSurface, with a pointer to the QWidget.
My problem is that I always receive a geometry like (0, 0, 640, 480). I tried to set the size with setGeometry inside my QWidget's constructor and other ways, but I always get that function invoked with that geometry before my call to setGeometry is done.
Question is: why do the QWidget's are always built with that geometry and then moved/resized? Am I doing something wrong?
This is a problem as to implement using accelerated drivers I need to have the geometry set immediately. I cannot reset the geometry afterwards.
Thanks!
My problem is that I always receive a geometry like (0, 0, 640, 480). I tried to set the size with setGeometry inside my QWidget's constructor and other ways, but I always get that function invoked with that geometry before my call to setGeometry is done.
Question is: why do the QWidget's are always built with that geometry and then moved/resized? Am I doing something wrong?
This is a problem as to implement using accelerated drivers I need to have the geometry set immediately. I cannot reset the geometry afterwards.
Thanks!