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?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Qt for Python
8 Posts 3 Posters 697 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 30 Aug 2022, 10:06 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

    J 1 Reply Last reply 30 Aug 2022, 11:00
    0
    • L LT-K101
      30 Aug 2022, 10:06

      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

      J Offline
      J Offline
      JonB
      wrote on 30 Aug 2022, 11:00 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 30 Aug 2022, 11:44
      0
      • J JonB
        30 Aug 2022, 11:00

        @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 30 Aug 2022, 11:44 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.

        J J 2 Replies Last reply 30 Aug 2022, 11:46
        0
        • L LT-K101
          30 Aug 2022, 11:44

          @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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 30 Aug 2022, 11:46 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 30 Aug 2022, 12:41
          0
          • L LT-K101
            30 Aug 2022, 11:44

            @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.

            J Offline
            J Offline
            JonB
            wrote on 30 Aug 2022, 11:47 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 30 Aug 2022, 12:37
            0
            • J JonB
              30 Aug 2022, 11:47

              @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 30 Aug 2022, 12:37 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.

              J 1 Reply Last reply 30 Aug 2022, 12:59
              0
              • J jsulm
                30 Aug 2022, 11:46

                @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 30 Aug 2022, 12:41 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
                  30 Aug 2022, 12:37

                  @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.

                  J Offline
                  J Offline
                  JonB
                  wrote on 30 Aug 2022, 12:59 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

                  2/8

                  30 Aug 2022, 11:00

                  topic:navigator.unread, 6
                  • Login

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