Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8362

First tab in QTabBar could end up with the first letter in the tab's label being cut off.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • 4.6.2
    • GUI: Look'n'Feel
    • None

      Simplified example showing the probelm:

      Work around is to either increase the min-width to 10ex (in this case) or add a space char in front of the tab's text

      QTabBar::tab {
      	/*border-image: url(:/OnlyOneTab_normal.png) 2 2 2 2;*/
      	border-top: 5px transparent;
              border-bottom: 5px transparent;
              border-right: 5px transparent;
              border-left: 5px transparent;
      	border-top-left-radius: 3px;
      	border-top-right-radius: 3px;
      	border-bottom-left-radius: 0px;
      	border-bottom-right-radius: 0px;
      	min-width: 8ex;
      	padding: 5px 12px 5px 12px;
      	border: 2px solid rgba(255, 255, 255, 0);
      	border-width: 0px 2px 1px 2px;
      	border-bottom-color:  rgb(95,255,191);
      	margin: 1px 0px 1px 1px;
      }
      
      QTabBar::tab:selected {
      	border-image: none;	
      	background-color: rgba(153, 153, 153, 255);
      	border-width: 1px 1px 0px 1px;
      	border-color: rgb(95,255,191);
      	margin: 0px 0px 0px 0px;
       }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes