Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Last active July 29, 2019 03:10
Show Gist options
  • Save jniemann66/fd43a927001e7364a5a855fda1a89b7c to your computer and use it in GitHub Desktop.
Save jniemann66/fd43a927001e7364a5a855fda1a89b7c to your computer and use it in GitHub Desktop.
Qt getting standard Qt icons as QPixmaps
statusIndicator->setPixmap(style()->standardPixmap(QStyle::SP_DialogOkButton));
// see https://doc.qt.io/qt-5/qstyle.html#StandardPixmap-enum
@jniemann66
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment