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.
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.
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:
Qt Code:
KLineEdit * line = new KLineEdit(this); line->setClearButtonShown(true);To copy to clipboard, switch view to plain text mode
Thanks for sharing.
Bookmarks