PDA

View Full Version : KDE Widgets



MTK358
22nd June 2010, 22:10
What is the difference between normal Qt widgets and "KDE" widgets?

How do all the LineEdits in KDE apps have a little clear button in them? I tried making a test window with a standard and a KDE LineEdit an none of them had it.

Apocalypse
12th September 2010, 23:09
Surely, the main difference is functionality. KDE widgets inherit Qt ones, and add more functionality related to KDE usually. This code can help you in showing clear button inside KLineEdit:

KLineEdit * line = new KLineEdit(this);
line->setClearButtonShown(true);

Sammy76
26th December 2013, 08:17
Thanks for sharing.