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 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?

    jsulmJ 1 Reply Last reply
    0
    • D deleted286

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      1
      • jsulmJ jsulm

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

        jsulmJ 1 Reply Last reply
        0
        • D deleted286

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          1
          • jsulmJ jsulm

            @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 last edited by
            #5

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

            jsulmJ 1 Reply Last reply
            0
            • D deleted286

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              1
              • jsulmJ jsulm

                @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 last edited by
                #7

                @jsulm Thank you

                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