Qt Increase QTabWidget’s QTabBar size

Qt Increase QTabWidget’s QTabBar size

Asked on January 9, 2019 in Qt.
Add Comment


  • 2 Answer(s)

    In subclass the  Qt stylesheets   arrange by the  height and width.

    // tabWidget is a pointer to a QTabWidget
    tabWidget->setStyleSheet("QTabBar::tab { height: 100px; width: 100px; }");
    // each tab should now be 100x100px
    

    Use:   The stylesheet  assign to QTabBar and   called by the setStyleSheet() on QTabWidget.

    Answered on January 9, 2019.
    Add Comment

    The initialized statement is:

         By using the  Qt Designer commenly   place by the QTabBar::tab { height: 100px; width: 100px; }  and the stylesheet  of the QTabWidget objet  is directed.

    Answered on January 9, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.