
怎么使QTreeWidget不显示虚线边框
1个回答
展开全部
代码如下:
m_treeSongCategoryWidget->setRootIsDecorated( false ); //去掉虚线边框
m_treeSongCategoryWidget->setFrameStyle(QFrame::NoFrame); //去掉边框
m_treeWidget->setStyleSheet("QTreeView::branch {image:none;}"); //去掉子节点的虚框
m_treeSongCategoryWidget->setRootIsDecorated( false ); //去掉虚线边框
m_treeSongCategoryWidget->setFrameStyle(QFrame::NoFrame); //去掉边框
m_treeWidget->setStyleSheet("QTreeView::branch {image:none;}"); //去掉子节点的虚框
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询