Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to create a parent button with child buttons in Designer?
QtWS25 Last Chance

How to create a parent button with child buttons in Designer?

Scheduled Pinned Locked Moved Unsolved Qt for Python
8 Posts 3 Posters 649 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.
  • L Offline
    L Offline
    LT-K101
    wrote on last edited by LT-K101
    #1

    I'm trying to create parent buttons with child buttons in Designer but I'm finding it difficult .When the parent button is expanded it shows all the child buttons under that parent buttons as shown i the picture below. I would appreciate any help,Thanks in advanced.

    Screenshot (14).png

    JonBJ 1 Reply Last reply
    0
    • L LT-K101

      I'm trying to create parent buttons with child buttons in Designer but I'm finding it difficult .When the parent button is expanded it shows all the child buttons under that parent buttons as shown i the picture below. I would appreciate any help,Thanks in advanced.

      Screenshot (14).png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @LT-K101
      Ummm, is that not exactly what you are asking for? If not, what is it you want?!

      L 1 Reply Last reply
      0
      • JonBJ JonB

        @LT-K101
        Ummm, is that not exactly what you are asking for? If not, what is it you want?!

        L Offline
        L Offline
        LT-K101
        wrote on last edited by
        #3

        @JonB I want to know the correct widget that does that, since I'm new to Qt. I have been searching on the internet but I'm not getting good feedback. A little direction will do please.

        jsulmJ JonBJ 2 Replies Last reply
        0
        • L LT-K101

          @JonB I want to know the correct widget that does that, since I'm new to Qt. I have been searching on the internet but I'm not getting good feedback. A little direction will do please.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @LT-K101 https://doc.qt.io/qt-6/qtreeview.html
          Also, using the word "button" is confusing - what you're showing has nothing to do with buttons...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          0
          • L LT-K101

            @JonB I want to know the correct widget that does that, since I'm new to Qt. I have been searching on the internet but I'm not getting good feedback. A little direction will do please.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @LT-K101
            You are not "new to Qt", you have made nearly 200 posts in over a year!

            I don't know what " the correct widget that does that" means to you. You show a tree view with "parent" and "child" icons, then you say you're " finding it difficult". You have the opportunity to explain what you are actually looking for, we are not mind readers. I don't know what you want, maybe someone else can tell from what you have written....

            L 1 Reply Last reply
            0
            • JonBJ JonB

              @LT-K101
              You are not "new to Qt", you have made nearly 200 posts in over a year!

              I don't know what " the correct widget that does that" means to you. You show a tree view with "parent" and "child" icons, then you say you're " finding it difficult". You have the opportunity to explain what you are actually looking for, we are not mind readers. I don't know what you want, maybe someone else can tell from what you have written....

              L Offline
              L Offline
              LT-K101
              wrote on last edited by
              #6

              @JonB I took the image I posted from sqlite browser and wanted to mimic it in my App I'm building. I have not implemented it yet.

              JonBJ 1 Reply Last reply
              0
              • jsulmJ jsulm

                @LT-K101 https://doc.qt.io/qt-6/qtreeview.html
                Also, using the word "button" is confusing - what you're showing has nothing to do with buttons...

                L Offline
                L Offline
                LT-K101
                wrote on last edited by
                #7

                @jsulm Thanks I have not used the qtreeview before so I'm checking it out.The reason I said button is because of the behavior of the hierarchy.

                1 Reply Last reply
                0
                • L LT-K101

                  @JonB I took the image I posted from sqlite browser and wanted to mimic it in my App I'm building. I have not implemented it yet.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @LT-K101 said in How to create a parent button with child buttons in Designer?:

                  @JonB I took the image I posted from sqlite browser and wanted to mimic it in my App I'm building. I have not implemented it yet.

                  Since you didn't explain that, I had no idea it was an image from another application which you wanted to emulate! I assumed you were showing a QTreeView/QTreeWidget you had already created in your Qt application!

                  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