I build a app use QtCreator /MSVC2010 (Win7 )
my app UI extend QWidget,the geometry is (0,0,860,600)
Where i run it on windows xp sp3(only one system is abnormal,anothers is good) , the app show abnormal,show a big big window.
I'm Rewrite the QWidget::resizeEvent(e){
} function,print the size and oldsize information:
i print :
old size -1,-1, new size > 3766,600
but on my PC,the UI show normal,
print:
old size -1,-1, new size > 860,600
then ,i write these code :
if(oldWin.width() == -1 &&
oldWin.height() == -1){
if(size.width() != 860 || size.height() != 600){
resize(860,600);
setGeometry(0,0,860,600);
}
}
in resizeEvent(e);
and the resize and setGeometry do not work ,the window still show abnormal~
who can tell me ? Why ?
Bookmarks