Bug 408160

Summary: Workspace saves docker positions but not docker sizes (width, height) on restart.
Product: [Applications] krita Reporter: lempikq
Component: DockersAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: griffinvalley, halla, lozmacdesigns, tomtomtomreportingin
Priority: NOR    
Version First Reported In: 4.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: on the left the workspace before restarting (right column's width was increased) and on the right after restarting (positions loaded their sizes not)

Description lempikq 2019-05-31 21:05:39 UTC
Created attachment 120463 [details]
on the left the workspace before restarting (right column's width was increased) and on the right after restarting (positions loaded their sizes not)

SUMMARY
Dockers have their positions saved but not their size (width, height), so if you start Krita, adjust sizes of dockers then close Krita and start it again the dockesr will retain only their position not transformation (size) and will shrink to the smallest width/height possible depeding on wheter it's a horizontal or vertical docker.

It's possible to do it manually, after restarting Krita (point 4. below), go to Window - Workspace - Select your new workspace, it remembers the positions and most importantly the sizes as well.

STEPS TO REPRODUCE
1. Open Krita
2. Adjust your workspace as yo usee fit (for example bring one docker to half the screen width or height wise - height for horizontal dockers, width for vertical dockers)
3. Save the workspace through Window - Workspace - New Workspace...
4. Restart Krita

OBSERVED RESULT
Dockers retain their position but not width and/or height, their size is set to the smallest possible.

EXPECTED RESULT
Workspace being the same as when it was saved, so position, width and height of all dockers (UI elements) to be stored and loaded everytime the workspace is loaded (Krita started).

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
In the attachement you can see on the left the workspace before restarting (right column's width was increased) and on the right after restarting (positions loaded their sizes not). It's one of the default workspaces but it's the same with a new Workspace you create on your own.
Comment 1 Halla Rempt 2019-07-06 15:37:35 UTC
*** Bug 409535 has been marked as a duplicate of this bug. ***
Comment 2 wolthera 2019-09-21 15:07:22 UTC
This is a very old issue that is qt related. I'll set it to confirmed for now, but not sure if we can do anything about it...
Comment 3 tomtomtomreportingin 2021-01-20 05:03:15 UTC
I think this bug is is a result of various dockers forcing a certain minimum size when starting Krita. This particular case happens because the Welcome screen forces a particular minimum size at startup.

I would be interested in hearing if there been any progress in Qt regarding this. My friend recently started experiencing this issue in such that his palette docker and brush presets docker are forced to larger sizes on restart. I also have this issue when attempting to make use of the detached canvas feature, in such that my secondary window with all my dockers is supposed to be tiny, but it resets to a significantly larger width on startup.
Comment 4 Halla Rempt 2021-01-20 09:43:35 UTC
Nobody in the Qt project is still working on the docker code. For 5.0 we might move to a completely different system, by KDab. See https://github.com/KDAB/KDDockWidgets