Does Qt Builder have a built-in toolbar editing tool?

Does Qt have a set of standard icons? (As for Back, Forwardetc.)

How can I add them to a button or toolbar in Qt Creator / Designer?

+3
source share
1 answer

I'm sure you cannot add icons directly in Designer, but you can programmatically reference them using:

QIcon QStyle::standardIcon ( StandardPixmap standardIcon, const QStyleOption * option = 0, const QWidget * widget = 0 ) const

The returned QIcon should match the style depending on your current style. You can see a list of standard characters in the official documentation .

+3
source

Source: https://habr.com/ru/post/1743672/


All Articles