Bug 338804

Summary: setting a central widget (setCentralWidget()) on KXmlGuiWindow breaks restoring the size
Product: [Frameworks and Libraries] frameworks-kxmlgui Reporter: Raymond Wooninck <tittiatcoke>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED NOT A BUG    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 337353    

Description Raymond Wooninck 2014-09-04 13:02:47 UTC
This is actually related to bugreport #337353, where is indicated that almost all KF5 based applications lose their size and window position when closed and reopened. As indicated in comment#4, Martin Klapetek found out that this looks like setting a central widget (setCentralWidget()) on KXmlGuiWindow breaks restoring the size because of some code in QWidget. 

As that the real bug is reported for Dolphin, I am now entering a bug for frameworks-kxmlgui as that this seems to be the right place.  

Reproducible: Always

Steps to Reproduce:
1. open dolphin
2. move the window arround, change its size, close dolphin
3. reopen again. it appears very small and forgets the size and position

Actual Results:  
dolphin window appears small and out of position

Expected Results:  
should keep its position and size

This is not only the case with dolphin, but one could also test this with Okular, Okteta, etc
Comment 1 Raymond Wooninck 2014-09-04 13:04:59 UTC
Forget about this one.  I thought the other one was register in the wrong category