title: QLineEdit with custom button
body: <p>I need to implement <code>LineEdit</code> widget with possibility to add tool buttons at the right end of text area. I know two ways of doing that but both solutions seems ugly.</p>
  
  <p>1) add tool buttons as child widgets of <code>QLineEdit</code> and handle <code>resizeEvent</code> to position them correctly. The main disadvantage is that if text is enough long it may appear under tool buttons.</p>
  
  <p>2) Another solution is to put line edit and buttons inside frame and overwrite style to hide <code>lineEdits</code> frame and make <code>QFrame</code> look like <code>QLineEdit</code>.</p>
  
  <p>I need a best way to implement such widget. Also my widget should be style aware.</p>