QT QSS选择器部分ID

xxx*_*xxx 4 qt qtstylesheets

我可以通过 ID 或所有 QPushButton(根本没有 #ID)将 QSS 应用到这样的 QPushButton。

QPushButton#BTN_A{
  background-color: white; 
  color: #659D32;
  border: 1px solid #659D32;
  font-size: 14px; 
}

QPushButton{
  background-color: white; 
  color: #659D32;
  border: 1px solid #659D32;
  font-size: 14px; 
}
Run Code Online (Sandbox Code Playgroud)

但是我想将 QSS 应用于所有以#BTN开头的按钮

在 CSS 中,它类似于:

div[class*="test"] {
   background: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)

我试过QPushButton#BTN *, QPushButton#BTN^ * 目前我什至不确定是否可能。