Okay so how do I add a spinbox into the toolbar via the Qt Creator?
I have other actions in there (open, close, save etc) which is fine because they are represented by an icon, but a spinbox wont stick in there as it were.
Cheers
Oz
Okay so how do I add a spinbox into the toolbar via the Qt Creator?
I have other actions in there (open, close, save etc) which is fine because they are represented by an icon, but a spinbox wont stick in there as it were.
Cheers
Oz
Added after 1 40 minutes:
Solved: Has to be done within code and not in the creator if its a widget (same applies to the statusbar I think. At least a post I saw that Wysota replied to said as much. Thanks Wysota)
e.g. in the MainWindow constructor
ui->toolBar->addWidget(spinBox);
QSpinBox *spinBox = new QSpinBox(this);
ui->toolBar->addWidget(spinBox);
To copy to clipboard, switch view to plain text mode
Cheers
Oz
Bookmarks