Created
August 16, 2015 10:32
-
-
Save cestrand/258bf18da2f32384d955 to your computer and use it in GitHub Desktop.
Add clickable image banner in QToolBar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent), ui(new Ui::MainWindow) | |
{ | |
// somewhere after ui->setupUi(this); | |
ui->mainToolBar->addWidget(spacer); | |
ui->mainToolBar->addWidget(new MyClickableBanner(this)); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment