1 m_tableSplitter = new QSplitter(Qt::Horizontal, this);  
2 //... 假设已经有两个Widget放到里面。  
3 m_tableSplitter->setStyleSheet("QSplitter::handle { background-color: black }");  
4 QSplitterHandle *splitterHandle = m_tableSplitter->handle(1);  
5 if(splitterHandle)  
6 {  
7     //Disable the Middle Line, it can't adjust.  
8     splitterHandle->setDisabled(true);  
9 }  

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2021-09-10
  • 2022-02-19
  • 2021-05-28
  • 2021-09-19
  • 2022-01-16
相关资源
相似解决方案