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. Height of a QListView item in css

Height of a QListView item in css

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 1.4k 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.
  • RITTR Offline
    RITTR Offline
    RITT
    wrote on last edited by
    #1

    I've got a QT Combobox Object. Now I want to design the Items of it (QListView) in a bigger context.
    But QListView::item does not work....
    any suggestions?

    here my css:

    QComboBox {
      background-color: rgb(204, 204, 204);
      border: 1px solid rgb(0, 0, 0);
      border-radius: 3px;
      font-family: "Tahoma";
      font-size: 12px;
      min-height: 30px;
    }
    
    QListView {
      padding: 2px 30px 2px 20px;
      background-color: rgb(204, 204, 204);
      border: 1px solid rgb(0, 0, 0);
      min-width: 90px;
      selection-background-color: rgba(0, 173, 165, 127);
    }
    
    QListView::item {
      color: red;
      height: 30px;
      padding: 2px 30px 2px 20px;
      border: 1px solid transparent;
    }
    
    QListView::item:selected {
      border-color: rgb(0, 173, 165);
      background-color: rgba(0, 173, 165, 127);
      color: blue;
    }
    
    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