如何更改QSplitter手柄的颜色
m_pSplitMainWin->setHandleWidth(10);
m_pSplitMainWin->setStyleSheet("QSplitter::handle:background-color: rgb(55, 100, 110);");
这不起作用,PLease提供您宝贵的意见
答案 0 :(得分:1)
适合我:
QSplitter::handle
{
background-color: rgb(255, 255, 255);
}
更复杂的例子:
QSplitter#editorViewSplitter::handle:horizontal
{
border-left: 1px solid lightGray;
}
QSplitter#editorViewSplitter::handle:vertical
{
border-bottom: 1px solid lightGray;
}
答案 1 :(得分:0)
这有效:
var whatsappUrl ="whatsapp://send?phone=$phone";
await canLaunch(whatsappUrl)? launch(whatsappUrl):print("open whatsapp app link or do a snackbar with notification that there is no whatsapp installed");