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. [SOLVED] CSS issue
Qt 6.11 is out! See what's new in the release blog

[SOLVED] CSS issue

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 633 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello, I am doing CSS stylesheet of QListWidget and I have problems with scroll bar...

    Bottom scrollbar is different from the top one... They both have same CSS, but bottom one for some reason does not have white border... Actually there is a blank space instead of border... I also added border-bottom but did not help... Top of the scrollbar is fine, but bottom one is missing white border...
    !http://imageshack.com/a/img546/7452/at1g.png(a)!

    Any idea what is wrong???
    @QWidget
    {
    color:white;
    background-color: none;
    outline:none;
    }

    QWidget:item:hover
    {
    background-color: orange;
    color: white;
    }

    QWidget:disabled
    {
    color: #404040;
    background-color: #323232;
    }

    QAbstractItemView
    {
    background-color:#262D41;
    border: 1px solid #F3F3F3;
    outline:none;
    }

    QScrollBar:vertical
    {
    background: #C0C0C0;
    width: 13px;
    margin: 16px 0 16px 0;
    }

    QScrollBar::handle:vertical
    {
    background: #F3F3F3;
    min-height: 21px;
    }

    QScrollBar::add-line:vertical
    {
    /border: 0px solid #1b1b19;/
    background: #C0C0C0;
    height: 16px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
    }

    QScrollBar::sub-line:vertical
    {
    border: 0px solid #1b1b19;
    background: #C0C0C0;
    height: 16px;
    subcontrol-position: top;
    subcontrol-origin: margin;
    }

    QScrollBar::up-arrow:vertical
    {
    image: url(':/images/ArrowUp.png');
    }

    QScrollBar::down-arrow:vertical
    {
    image: url(':/images/ArrowDown.png');
    }

    QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
    {
    background:none;
    }
    @

    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