Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 2.7.x: creating action groups in Form Editor?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 2.7.x: creating action groups in Form Editor?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 6.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Skh1002
    wrote on last edited by
    #1

    Hi, everyone. I wonder if it is possible at all to insert action groups into tool bars and menus from Form Editor. In earlier versions of Creator, one could select 'New Action Group', but now the only option is to insert an action. It would be quite awkward if one had to group separately in code actions created with Form Editor.

    Maybe, at least it is possible to insert an action group by editing the form source?

    Any comments would be greatly appreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Skh1002
      wrote on last edited by
      #2

      Well, since no-one has so far voluneered any comments, I'll post the results of my own reseach, in case someone needs them. This feature appears to have been dropped in passing from Qt 3 to Qt 4, and the word from the developers I've just got is that there are no plans to support it.

      The ui format "schema":http://qt-project.org/doc/qt-5.0/qtdesigner/designer-ui-file-format.html still defines action groups, and one can manually insert them into an ui form by wrapping the actions to be grouped by <actiongroup name="GroupName"> and </actiongroup>. Uic (as of 5.1.0 beta) honours this and creates an action group accessible through ui->. When the application is run, the behaviour of grouped actions is as expected (i.e. mutually exclusive by default).

      Manually inserted action groups do not show up in Qt Widget Designer (as if they did not exist).

      1 Reply Last reply
      0
      • osirisgothraO Offline
        osirisgothraO Offline
        osirisgothra
        wrote on last edited by
        #3

        this doesn't make sense, i thought mutually exclusive action (check) groups are a common thing in an application ?? They are radio buttons for the menu, Why not support this in the GUI, and worse, why go from having a feature that is so common in development, to not having it? You know when people take key features out like this, it is those 'little' things that make developers just entering into your framework want to turn tail and go elsewhere...

        I'm not trying to come off as lazy or anything, I understand it isn't too hard to add them manually from the code (which is easier than adding markup to the .ui) but still, keeping things separate (design, implementation) separate becomes an issue here. UI designers dont want to muck around in code where they don't belong, and coders don't want to muck around implementing code that should have been done in the UI by the designers in the first place... see where I'm going with this?? Hopefully one day this will be reconsidered for re-insertion.. If we can have signals/slots in the designer, then I'm sure it would be a walk in the park to put this back... :)

        I'm truly glad you r/offmychess t finally, but please don't go too far, because you r/beyondvoxels and that implies that u r/donewithlife. Oh well time to git back to the lab, because azure sea here, I have a lot of work to do...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved