Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Color Problem of a QSCROLLBar in an embedded system
Forum Updated to NodeBB v4.3 + New Features

Color Problem of a QSCROLLBar in an embedded system

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 205 Views 1 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.
  • B Offline
    B Offline
    benamiar
    wrote on last edited by
    #1

    Hello guys,
    i have a little problem on the color of my background when i'm in an embedded system(working with linux), my background color became a mix between the background color i want and the handler color. in my computer simulation it works fine, but in the embedded system the color is mixed so i need your help to undestand whats happening.

    setStyleSheet(QString("QScrollBar:horizontal{background-color: %2; border: 2px solid %2; border-radius: 1px; margin: 0px; height:15 px;}"
    "QScrollBar::handle:horizontal{background-color: %1 ; min-width:%3;}"
    "QScrollBar::add-line:horizontal {border: none; background: none;}"
    "QScrollBar::sub-line:horizontal {border: none; background: none;}"
    ).arg(Q2UiColorsLocator::get().getDispBackground().name(), Q2UiColorsLocator::get().getDispText().name()).arg(m_scrollerSize));

    Thanks all

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

      Hi
      do you mean something like
      alt text
      kinda effect ?

      Could you try

      QScrollBar::sub-page:horizontal {
      background: red;
      }

      QScrollBar::add-page:horizontal {
      background: green;
      }

      and see if that shows as expected ?
      alt text

      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