PDA

View Full Version : More problems with Menus and Toolbars



mridey
16th November 2006, 12:16
I don't seem to be able to use menus and toolbars in the design editor correctly.
Here;s the steps:

- Launch Visual Studio 2005
- New project
- Name and select QT Application
- Get the wizard, accept the defaults
- Solution opened, double click the UI file
- Get the dialog in the editor
- Click the menubar and type File
- Click the submenu and type Exit

Note:

As I type, I can see a QAction object and its properties in the Property window.

Then

- Click away from the menubar
- Click again on the word "File"

The menu opens but the Property window stay on QMainWindow.
I am totally unable to get the property window to show the created QAction objects.

Right clicks on the menu items only gives me the option to remove.
There's also no option to add items into the toolbar.

AS I work-around I found that I can create a menuitem then drag it into the toolbar to create a button on the toolbar.

But since I can't access the properties, I can assign icons.

Oh, BTW I have QT4 Trial, download only a few days ago.

Thanks.

jpn
16th November 2006, 12:20
Check out the action editor: "Qt->Qt Action Editor" and the object inspector: "Qt->Qt Object Inspector".

mridey
16th November 2006, 12:37
Check out the action editor: "Qt->Qt Action Editor" and the object inspector: "Qt->Qt Object Inspector".

Yes, exactly, I found a workaround by opening the Object Inspector. I can select the items in the list instead of clicking on the actual widgets on the form. That allows me to select the QAction objects and modify their properties.