PinTxO
7th September 2016, 10:06
Hi everyone.
I've subclassed QStyle to control the aspect of my app. After customizing the aspect of the QLineEdits, I need to add an icon inside the QLineEdit and it has to be clickable by the user. I've seen that I can use the QLineEdit::addAction-1 to add and action and an icon in the QLineEdit. The problem arises with the position in which it draws the icon because as I have the customized QLineEdit, the icon draws too near the edge of QLineEdit. I need to separate more icon QLineEdit edge. Does anyone know how to control the position of the icon in the QLineEdit?
Thanks.
I've subclassed QStyle to control the aspect of my app. After customizing the aspect of the QLineEdits, I need to add an icon inside the QLineEdit and it has to be clickable by the user. I've seen that I can use the QLineEdit::addAction-1 to add and action and an icon in the QLineEdit. The problem arises with the position in which it draws the icon because as I have the customized QLineEdit, the icon draws too near the edge of QLineEdit. I need to separate more icon QLineEdit edge. Does anyone know how to control the position of the icon in the QLineEdit?
Thanks.