Bug 338804 - setting a central widget (setCentralWidget()) on KXmlGuiWindow breaks restoring the size
Summary: setting a central widget (setCentralWidget()) on KXmlGuiWindow breaks restori...
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks: 337353
  Show dependency treegraph
 
Reported: 2014-09-04 13:02 UTC by Raymond Wooninck
Modified: 2014-09-04 13:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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