Fix the alignment of main body elements in Qt viewer