• 6779阅读
  • 4回复

[提问]关于dockwidget的边框 [复制链接]

上一主题 下一主题
离线fcdding
 

只看楼主 倒序阅读 楼主  发表于: 2011-03-31
自己做了dockwidget的button后发现,窗口的边框没了!大家给看看
就想做个边框出来,想让下面的这个窗口和上面的一样,有边上的那一圈兰条!
  

[ 此帖被fcdding在2011-03-31 12:07重新编辑 ]
离线dbzhang800

只看该作者 1楼 发表于: 2011-03-31
Manual中说的很清楚:

void QDockWidget::setTitleBarWidget ( QWidget * widget )
Sets an arbitrary widget as the dock widget's title bar. If widget is 0, the title bar widget is removed, but not deleted.
If a title bar widget is set, QDockWidget will not use native window decorations when it is floated.
离线fcdding

只看该作者 2楼 发表于: 2011-03-31
恩,再研究研究怎么给他加上去!!
离线qianguozheng

只看该作者 3楼 发表于: 2011-03-31
学习了
离线uidab

只看该作者 4楼 发表于: 2011-03-31
贴点图片。呵呵!!细节自己考虑吧!!
有时候为了工作直接获得答案,而我却失去了思考的乐趣!


飘啊飘,何时能安居!
快速回复
限100 字节
 
上一个 下一个