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. remove top and bottom zone in QComboBox's QListView in android (Qt 6.4.2)
Forum Updated to NodeBB v4.3 + New Features

remove top and bottom zone in QComboBox's QListView in android (Qt 6.4.2)

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

    Hi Guys!
    I build to android, and i have a QComboBox. There are more elements in QComboBox's QListView than can fit, that's why there is a scroll bar and you can scroll, Its okay. But you can see that there are two small line above and below with a triangle. I want to make these two bars disappear completely... any ideas? Thanks for the help!
    Screenshot_20240723-194935.jpg

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jully333gill
      wrote on last edited by
      #2

      Hello,

      To remove the small lines with triangles (scroll indicators) above and below the scroll bar in your QComboBox’s QListView, you can customize the style of the scroll bar using a stylesheet. Here’s how you can do it:
      Set the Scroll Bar Policy: Ensure that the scroll bar is set to always show or hide as needed.
      Customize the Scroll Bar Style: Use a stylesheet to hide the scroll indicators.
      Hope that helps.

      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