http://labs.trolltech.com/blogs/2007/06/06/lineedit-with-a-clear-button/ has broken links to sample code for adding a clear button to a QLineEdit. Is this code available anywhere? I've searched without success. It does look like QtCreator 2.0 uses this, but digging it out of 50MB of code is not a pleasant prospect.