Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スタイルを適用した QToolbar があります。
sMainWindowStyle += "QToolBar::handle { image: url(:/icons/toolbar_handle.png); }\n";
ただし、ツールバーのハンドルを変更するだけでなく、展開矢印も変更したい >>
プロパティのリストが見つからないので、ツールバーの展開矢印が何であるかを調べることができます。Qt のスタイル プロパティの決定的なリストを知っている人はいますか?
次の CSS で展開ボタンを変更できます。
QToolButton#qt_toolbar_ext_button { qproperty-icon: url(:/path/to/image.png); }
残念ながら、設定できるプロパティを見つける最善の方法は、Qt ソース コードを参照することです。一部のスタイルは一部のプロパティをサポートできませんが、他のスタイルはサポートします。