Hi everybody,

I am working on a project for which I have designed the user interface in the Designer.

I now want to add a too bar above my QGraphicsView. For this I would like to use QToolBar.

Unfortunately I can't add a QToolBar directly in the designer, so I just added a "Widget" where I want the toolbar to be placed. I then created a class "ToolBar2D", which inherits from QToolBar.

Now I have found out that I can promote widgets to user-defined classes. So I right-clicked the Widget in the designer and clicked on "Promote to..."

Then a window opened where I tried to add the class:

Base-Class: QToolBar
Class-name: ToolBar2D
Include-File: toolbar2d.h
Global include file: checked

I can then click the button to add this class, but the "Promote" button is disabled. And in the list above the class is added but it says "not used"

(all the terms I wrote were translated since my Designer is in German)...

Can anybody tell me why this isn't working? Why is the added class not accepted?

Would be great if anyone could help me!

Thanks,
-evident-