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.
pyqtQLabelに説明テキストとともに標準の警告アイコンを表示したいと思います。機能がありません。では、どうすればそれを行うことができますか?QlabelsetIcon
QLabel
Qlabel
setIcon
どんな助けでも大歓迎です。
QLabelsetIconメソッドはありませんが、ありますsetPixmap。ただし、これを使用して設定するQPixmapと、テキストが上書きされます。しかし、あなたが望むものを達成するためのいくつかの可能性があります:
setPixmap
QPixmap