Sunday, July 6th 2008, 1:28am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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