PDA

View Full Version : Problems with Designer for QActions



pherthyl
1st November 2007, 19:56
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.

pherthyl
2nd November 2007, 22:10
Here's the answer I got from Trolltech support.

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

http://www.trolltech.com/developer/task-tracker/index_html?id=186129&method=entry
http://www.trolltech.com/developer/task-tracker/index_html?id=186130&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).