Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Hide and show group at runtime
QtWS25 Last Chance

Hide and show group at runtime

Scheduled Pinned Locked Moved Language Bindings
4 Posts 2 Posters 1.4k Views
  • 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.
  • B Offline
    B Offline
    Blackbear
    wrote on last edited by
    #1

    Not sure how to even start on this. I have a group of widgets and I want to 'instantiate' the group on the form via a menu command. Also need to be able to remove the group with a delete key.

    Is this even possible?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean create a new "group" each time or just show/hide that group ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Blackbear
        wrote on last edited by
        #3

        Not sure. (I pretty much a newbie)

        I'll have various groups that are pre-defined as far as what widgets are in them and how they're laid out.

        The end user needs to be able to place the group fill in blanks and/or select items in combo boxes, etc.

        If the end user then decides to delete the group it's gone and only an 'undo' can retrieve it.

        If the 'place' the group again via the menu it is a new group with default settings.

        I suppose an example of what I am trying to do might be the way qt designer works with it's widget placement on a form.

        Hope that clear.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you should make a separate widget for each group, it will simplify the handling.

          For the undo part, have a look at QUndoStack

          For the layout part, it seems you will do it vertically, so you can use a QVBoxLayout

          Hope it helps

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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