i have an app with a preferences dialog. since i used the example code from kdevelop the preferences dlg itself is hardcoded (no ui file) and every page is its own ui file. the problem is that the preferences dlg doesnt resize to fit the pages content.... here's my code:
|
Source code
|
1
2
3
4
5
6
7
8
9
|
QFrame *frame;
frame = addPage(i18n("Main"), i18n("General Settings"), IconLoader.loadIcon((QString)"../../beastie.xpm", KIcon::NoGroup));
m_pageOne = new KPortsPrefPageOne(frame);
frame = addPage(i18n("Appearance"), i18n("Display-Settings"),IconLoader.loadIcon((QString)"looknfeel", KIcon::NoGroup));
frame->setFrameRect(frame->contentsRect());
m_pageTwo = new KPortsPrefPageTwo(frame);
|
i've tried stuff like setsizepolicy, but it wont help. only thing that has worked yet is setfixedsize but thats not a real solution!
thanks for help