Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Change QTabWidger (Insert a controller with buttons)



  • Hello to all.
        I need to create a component as QTabWidget, but between the first two tabs
    there should be a controller with 4 buttons for navigation between tabs:
    previous, next, first and last.
        I did, but I wonder if there is a better way.
        I did as follows:
        1) I created a QTabWidget.
        2) In the second tab, I added a widget containing 4 buttons and no text.
        3) mapped events.
       
    problems:

    1. The controller should be different stylesheet from tab stylesheet
      (tabs are rounded and controller are rectangular).
    2. I have to disable the event (change the page when I click on the tab controller).

    I thank you.


Log in to reply