Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Height of a QListView item in css

    General and Desktop
    1
    1
    1111
    Loading More Posts
    • 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.
    • RITT
      RITT last edited by

      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 Reply Quote 0
      • First post
        Last post