save and restore the geometry of KMainWindow

Alexander Semke alexander.semke at web.de
Tue Jan 30 20:06:02 UTC 2018


On 30.01.2018 16:38, Milian Wolff wrote:
> This works for me:
> https://github.com/KDAB/hotspot/blob/4d1177d1631902dce1dd82f53553e97a7544b1fa/
> src/mainwindow.cpp#L162
Thanks, that helped. I was using 
restoreGeometry(group.readEntry("geometry").toLatin1()) instead of

restoreGeometry(group.readEntry("geometry", QByteArray())) ... Hotspot 
is a nice tool by the way :-)

Why not to add this logic to KMainWindow and to make this automatically 
available for all/many KDE applications?

The state is already saved and restored there. Why not to do the same 
for the geometry?

-- 

Alexander


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180130/9764f7df/attachment.html>


More information about the Kde-frameworks-devel mailing list