Results 1 to 3 of 3

Thread: More problems with Menus and Toolbars

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default More problems with Menus and Toolbars

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: More problems with Menus and Toolbars

    Check out the action editor: "Qt->Qt Action Editor" and the object inspector: "Qt->Qt Object Inspector".
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    mridey (16th November 2006)

  4. #3
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: More problems with Menus and Toolbars

    Quote Originally Posted by jpn View Post
    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.

Similar Threads

  1. Why are actions limited to menus and toolbars?
    By Paul Drummond in forum Qt Programming
    Replies: 16
    Last Post: 3rd March 2006, 12:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.