Friday, July 4th 2008, 10:40pm UTC+1

You are not logged in.

  • Login
  • Register

1

Tuesday, November 13th 2007, 10:02pm

Adding combo box on a toolbar

Hi All,

I'm a newbie and was wondering if there's a way to add a combo box or any other widget onto a toolbar in QT Designer (V4.3)? I tried dragging a combo box control onto a toolbar but it always ends up on the mainwindow central widget.
Any information would be greatly appreciated. Thanks in advance.
  • Go to the top of the page

lifthrasir

Trainee

Posts: 159

Location: France

Occupation: Student

2

Wednesday, November 14th 2007, 8:56am

I don't think its possible to do that with the designer but you can do that programmatically.

Source code

1
myToolBar->addWidget(myComboBox)
  • Go to the top of the page

Rate this thread