With a standard Windows app, linked to Common Controls 6, you do:and the appropriately coloured shield icon is added to your button.Qt Code:
GetDlgItem(IDC_SOMEBUTTONID)->SendMessage(BCM_SETSHIELD, 0, TRUE);To copy to clipboard, switch view to plain text mode
Is there a way to get the "official" Windows UAC shield icon on to a QPushButton?
Is shipping an icon for each of Vista and Win 7 (different colours) and manually applying it the only way with Qt?
Bookmarks