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. What is this object called? (I'm getting the hang of it)

What is this object called? (I'm getting the hang of it)

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.5k Views 2 Watching
  • 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.
  • P Offline
    P Offline
    Pro Grammer
    wrote on last edited by
    #1

    There is an object that I want to style with QSS but I don't know what it's called. Here is a screenshot:
    image
    It's a border that connects to the selected tab, but overlaps the ones in the background. When I style just the selected tab with QTabBar::tab:selected this border remains unstyled. It also isn't just the bottom border of QTabBar, I tried that.

    Maybe someone can also tell me how to style this border, specifically? I think it could be part of QTabBar, maybe? Thanks you.

    p3c0P 1 Reply Last reply
    0
    • P Pro Grammer

      There is an object that I want to style with QSS but I don't know what it's called. Here is a screenshot:
      image
      It's a border that connects to the selected tab, but overlaps the ones in the background. When I style just the selected tab with QTabBar::tab:selected this border remains unstyled. It also isn't just the bottom border of QTabBar, I tried that.

      Maybe someone can also tell me how to style this border, specifically? I think it could be part of QTabBar, maybe? Thanks you.

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Pro-Grammer That is I guess pane and customized as

      QTabWidget::pane { /* The tab widget frame */
          border-top: 2px solid #C2C7CB;
      }
      

      as said here.

      157

      P 1 Reply Last reply
      0
      • p3c0P p3c0

        @Pro-Grammer That is I guess pane and customized as

        QTabWidget::pane { /* The tab widget frame */
            border-top: 2px solid #C2C7CB;
        }
        

        as said here.

        P Offline
        P Offline
        Pro Grammer
        wrote on last edited by
        #3

        @p3c0 Unfortunately, it doesn't work for me. Maybe because it's not really a QTabWidget, but actually a QTableView with tabs for it on top.

        p3c0P 1 Reply Last reply
        0
        • P Pro Grammer

          @p3c0 Unfortunately, it doesn't work for me. Maybe because it's not really a QTabWidget, but actually a QTableView with tabs for it on top.

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Pro-Grammer Do you have the code ? It should be clear then.

          157

          P 1 Reply Last reply
          0
          • p3c0P p3c0

            @Pro-Grammer Do you have the code ? It should be clear then.

            P Offline
            P Offline
            Pro Grammer
            wrote on last edited by Pro Grammer
            #5

            @p3c0 Unfortunately it's a bigger project and I'm just here to style it because I know CSS. The others aren't involved in the Styles, so it has been a bit awkward to talk to each other. But would it be easy to look it up in their code myself without knowing much about Qt yet?

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              well, if you have the project file(s)
              and they do use UI files under the Forms folder,
              then yes you should be able to find out what object type it is by simply open it and click around.

              If they generate the gui from code, then you need to be able to read c++ at least to find the right object.

              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