Custom dock area using Qt 4.4

北城以北 提交于 2019-12-01 09:23:33

At first, Q3DockArea hasn't been removed in Qt4, actually it has been added. The class which got removed was QDockArea. You can still use this Q3* classes if you have old code, thats what they are made for.

But I would not recommend to use the compatibility classes. How about using a QMainWindow like a QWidget. Create it with a parent Widget, but without menu, toolbar, statusbar and revoke its top-level status with setWindowFlags() and the like.

You can use it as an old style QDockArea, place it where you like and add your QDockWidgets.

Besides, the current Qt Version is 4.5.2, no need to use outdated Versions ;-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!