Yes, it's possible. Use a QLineEdit and a stylesheet that changes the padding and sets a background image to the padded rectangle. Alternatively place QToolButtons (or QLabel if you don't want the icons clickable) and a QLineEdit in a horizontal layout with 0 spacing.
A crude example attached. Obtained with the following stylesheet:
padding-right: 20px;
padding-left: 5px;
background: url(/usr/share/icons/crystalsvg/16x16/actions/exit.png);
background-position: right;
background-repeat: no-repeat;
border: 1px solid black;
border-radius: 10px;
padding-right: 20px;
padding-left: 5px;
background: url(/usr/share/icons/crystalsvg/16x16/actions/exit.png);
background-position: right;
background-repeat: no-repeat;
border: 1px solid black;
border-radius: 10px;
To copy to clipboard, switch view to plain text mode
Bookmarks