Unsolved QTextEdit / QLineEdit with tag item
-
I m looking for a widget to display tag with cross icon to remove item. Does someone already make it ?
-
Hi
I have not seen a premade widget but easy to build using
http://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html -
But it's not editable
-
@dridk2
What is not editable ? -
@mrjj
I suspect that the user intends each of those to be editable labels/line edits --- the user can type in tag text, and he can destroy the whole tag. (Though he does not say, and only asks about the "X") . -
@JonB
Well a widget +layout + a button for close and
a QLabel with Qt::TextEditable (TextInteractionFlags)
should do it.