Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Push buttons on the buttom like a tab
QtWS25 Last Chance

Push buttons on the buttom like a tab

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtabwidgetwidgetpush button
7 Posts 2 Posters 991 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.
  • D Offline
    D Offline
    deleted286
    wrote on 16 Feb 2021, 14:28 last edited by
    #1

    I have a QTabWidget that has 5 page. And i have a QWidget which includes 6 push buttons.
    I want to add my push buttons into every page. In every page it will do the same thing. I just want to see push buttons in every page.
    Like a tab on the buttom. How can i do it?

    J 1 Reply Last reply 16 Feb 2021, 14:31
    0
    • D deleted286
      16 Feb 2021, 14:28

      I have a QTabWidget that has 5 page. And i have a QWidget which includes 6 push buttons.
      I want to add my push buttons into every page. In every page it will do the same thing. I just want to see push buttons in every page.
      Like a tab on the buttom. How can i do it?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Feb 2021, 14:31 last edited by
      #2

      @suslucoder said in Push buttons on the buttom like a tab:

      Like a tab on the buttom. How can i do it?

      Simply put the tab widget and the widget with buttons into a vertical layout.

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

      D 1 Reply Last reply 16 Feb 2021, 14:33
      1
      • J jsulm
        16 Feb 2021, 14:31

        @suslucoder said in Push buttons on the buttom like a tab:

        Like a tab on the buttom. How can i do it?

        Simply put the tab widget and the widget with buttons into a vertical layout.

        D Offline
        D Offline
        deleted286
        wrote on 16 Feb 2021, 14:33 last edited by
        #3

        @jsulm Yes but, can i add push buttons into every page on tab widget? Because when i do it, the name of the buttons will change and they wont be functional until im adding slot and write smth.

        J 1 Reply Last reply 16 Feb 2021, 14:36
        0
        • D deleted286
          16 Feb 2021, 14:33

          @jsulm Yes but, can i add push buttons into every page on tab widget? Because when i do it, the name of the buttons will change and they wont be functional until im adding slot and write smth.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 16 Feb 2021, 14:36 last edited by
          #4

          @suslucoder said in Push buttons on the buttom like a tab:

          can i add push buttons into every page on tab widget?

          Of course you can, why not?
          Implement a custom widget with the buttons and add this custom widget to each tab.

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

          D 1 Reply Last reply 16 Feb 2021, 14:40
          1
          • J jsulm
            16 Feb 2021, 14:36

            @suslucoder said in Push buttons on the buttom like a tab:

            can i add push buttons into every page on tab widget?

            Of course you can, why not?
            Implement a custom widget with the buttons and add this custom widget to each tab.

            D Offline
            D Offline
            deleted286
            wrote on 16 Feb 2021, 14:40 last edited by
            #5

            @jsulm and i will write a function for every button on every tab?

            J 1 Reply Last reply 16 Feb 2021, 14:43
            0
            • D deleted286
              16 Feb 2021, 14:40

              @jsulm and i will write a function for every button on every tab?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 16 Feb 2021, 14:43 last edited by
              #6

              @suslucoder No, because you only implement this custom widget once including all the buttons and methods. You simply create as many instances as tabs...

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

              D 1 Reply Last reply 16 Feb 2021, 14:46
              1
              • J jsulm
                16 Feb 2021, 14:43

                @suslucoder No, because you only implement this custom widget once including all the buttons and methods. You simply create as many instances as tabs...

                D Offline
                D Offline
                deleted286
                wrote on 16 Feb 2021, 14:46 last edited by
                #7

                @jsulm Thank you

                1 Reply Last reply
                0

                1/7

                16 Feb 2021, 14:28

                • Login

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