This seemed harder than it was. they key was to use QLabel in designer to create the LAbel with a Pixmap, then install it on the Status bar manually.
Once its there I could easily update it..
Example:
Install the icon on the status bar.
ui.statusBar->insertPermanentWidget(0, ui.statusIconLabel,0 );
ui.statusBar->insertPermanentWidget(0, ui.statusIconLabel,0 );
To copy to clipboard, switch view to plain text mode
Then Update it from the Connection Status function by:
ui.
statusIconLabel->setPixmap
(QPixmap(":/images/connected_32x32.png"));
ui.statusIconLabel->setPixmap(QPixmap(":/images/connected_32x32.png"));
To copy to clipboard, switch view to plain text mode
Bookmarks