One thing to maybe keep in mind if it's possible is are you destroying the dock widget when you close it or just hiding the dock widget so its the same object when you reshow it? If you are destroying them upon closing them, this would explain why their behavior changes from time to time, because you create a whole new dock widget that has no knowledge of its predecessor.
As I wrote in first post, I connect toggled(bool) with setVisible(bool) so I think I'm just hiding and showing and it's not destrying it.
I would like to be a "Guru"
Useful hints (try them before asking):
Use Qt Assistant
Search the forum
If you haven't found solution yet then create new topic with smart question.
Bookmarks