OMG. It was a really stupid bug. It seems I'm too tired. There were two different QDockObject *DiskInfoWidget in class and in the function. Sorry for posting. Unfortunately I couldn't find a way to delete my thread.