I'm trying to use style sheets to add spaces before and after each drop down item so that it can be selected more easily with a finger in a touch screen but haven't found out how. Does anyone know what the right option is?
Here's my stylesheet for QComboBox:
color: white;
border-color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2:0, y2: 1, stop: 0 beige, stop: 1 black);
border: 1px solid white;
border-radius: 3px;
padding: 1px 18px 1px 3px;
min-width: 6em;
font: 15pt "Sans Serif";
}
border: 2px solid darkgray;
color: white;
padding: 10px 10px 10px 10px;
selection-background-color: lightgray;
}
QComboBox {
color: white;
border-color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2:0, y2: 1, stop: 0 beige, stop: 1 black);
border: 1px solid white;
border-radius: 3px;
padding: 1px 18px 1px 3px;
min-width: 6em;
font: 15pt "Sans Serif";
}
QComboBox QAbstractItemView {
border: 2px solid darkgray;
color: white;
padding: 10px 10px 10px 10px;
selection-background-color: lightgray;
}
To copy to clipboard, switch view to plain text mode
Bookmarks