Results 1 to 2 of 2

Thread: Problems with Designer for QActions

  1. #1
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Problems with Designer for QActions

    I'm trying to move my mainwindow UI to being generated by Designer instead of by hand and have two problems.

    For menu actions, I use QKeySequence::StandardKey to set the keyboard shortcuts. However, in designer it seems I can only hardcode a keyboard shortcut for a QAction. Is it possible to use something like QKeySequence::Save instead?

    Also for menu actions, I assign icons created from several pixmaps of different sizes. However I can't seem to do that in designer. I can choose icon pixmaps from my resource file, but can't assign multiple pixmaps to one icon. Wysota mentioned it was possible in another thread, but I can't figure it out.

    Thanks for any help.

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with Designer for QActions

    Here's the answer I got from Trolltech support.

    I've created tasks for the developers about these issues.

    http://www.trolltech.com/developer/t...9&method=entry
    http://www.trolltech.com/developer/t...0&method=entry

    You can combine code and designer easily enough. E.g. design all your
    widgets/actions etc in designer.

    The set your own icon and shortcut in code on the actions in code.

    (the links don't work for me, but basically it's not possible yet).

Similar Threads

  1. Replies: 13
    Last Post: 15th December 2006, 11:52

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.