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. QTabWidget's border on Windows 7
Forum Updated to NodeBB v4.3 + New Features

QTabWidget's border on Windows 7

Scheduled Pinned Locked Moved Solved General and Desktop
qtabwidgetwindows 7border
4 Posts 2 Posters 1.7k 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.
  • Y Offline
    Y Offline
    YuriQ
    wrote on last edited by
    #1

    Hello.

    I need to make QTabWidget's border to look like QTextEdit's border. QTextEdit has different colors on each side - that is what I want for QTabWidget.

    Here is Illustration of the issue.

    How can I achieve this?

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      YuriQ
      wrote on last edited by
      #2

      Possible solution - use stylesheet like this one:

      QTabWidget::pane
      {
      border-left-color: #012345;
      border-right-color: #012345;
      border-top-color: #012345;
      border-bottom-color: #012345;
      }
      

      But how do I get appropriate colors?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maximus
        wrote on last edited by
        #3

        Stylesheet could do this.
        But a small warning, once you start with many custom stylesheet, it can be pretty hard to keep the change in future OS version (Windows 10, ..) I now prefer to keep the OS style to save developing time, but I was once like you.


        Free Indoor Cycling Software - https://maximumtrainer.com

        Y 1 Reply Last reply
        1
        • M maximus

          Stylesheet could do this.
          But a small warning, once you start with many custom stylesheet, it can be pretty hard to keep the change in future OS version (Windows 10, ..) I now prefer to keep the OS style to save developing time, but I was once like you.

          Y Offline
          Y Offline
          YuriQ
          wrote on last edited by
          #4

          @maximus Yes, I decided not to do it.

          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