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. Qtabbar style doesn't load

Qtabbar style doesn't load

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.2k 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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi i have a problem has a tabwidget on it
    in my mainwindow i load a stylesheet from examples and demos named pcoffe.qss
    it works fine but my Qtabbar of Qtabwidget doesn't have this style, how can i add qtabbar on my pcoffe.qss theme?i write it close to qpushbutton but it does'nt have any differences
    i mean this
    @QPushButton,QTabBar {
    ....
    }@
    and i wrote this program on macintosh
    the tabbar showed on a center of qtabwidget i want to be in right position like windows
    how can i set this?

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you study the example on how to style a QTabBar from the documentation?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #3

        i don't find anything about it, can you give me address?

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          "Stylesheet reference":http://developer.qt.nokia.com/doc/qt-4.7/stylesheet-reference.html#id-80a4f0cf-7647-4667-92eb-133133b04168
          "Stylesheet tabbar example":http://developer.qt.nokia.com/doc/qt-4.7/stylesheet-examples.html#id-070bd670-ec8f-4b65-80f4-b9aff39b0fa3

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #5

            i use this code on my stylesheet and it works fine for me, but i have a bit problem i will showing you
            @QTabWidget::tab-bar {
            alignment : right;
            background-color: beige;
            }

            QTabWidget::pane {
            border-width: 0px;
            border-color: darkkhaki;
            border-style: solid;
            border-radius: 5;
            padding: 3px;
            min-width: 9ex;
            min-height: 2.5ex;
            }

            QTabBar::tab {
            background: beige;
            border: none;
            padding: 0;
            }

            QTabBar::pane {
            border-width: 0px;
            border-color: darkkhaki;
            border-style: solid;
            border-radius: 5;
            padding: 3px;
            min-width: 9ex;
            min-height: 2.5ex;
            }
            @
            !http://kitten2.persiangig.com/white-space.png(white space)!
            see this picture it has a white space near my tabs i want to be a beige color , what should i write on my stylesheet file?
            and you see my radio buttons on top of my tabs , i want to both of them to be on one row, can i do that?
            because i think the qtabbar will fill all of the space in front of it?is it true?

            Edit: for some reason, images need an ALT text to show on this forum. Please fill it in next time; Andre

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kitten
              wrote on last edited by
              #6

              and i want to use this toturial for managing hover events, it does'nt work good for me
              and whenever my mouse move to left of my tab (white space) it do my hover event ,
              what should i do?
              "this link":http://developer.qt.nokia.com/faq/answer/how_can_i_detect_hover_events_on_the_tabs_of_a_qtabwidget

              www.kitten.mihanblog.com

              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