[Qt-interest] different colors in the same QLineEdit
Cimpean Andrei Sebastian
andreiamenta at gmail.com
Tue Sep 8 15:23:15 CEST 2009
Hello everybody.
I have a QLineEdit widget where i display a path. As a feature i
visually add file extensions that ensure that a user always sees what
filters he is applying to a folder.
First of all... i am pretty sure but don't have a clue as to how
something like i describe can be achieved:
a widget like this
__________
/ \ that contains some info, inside a QLineEdit
| | also, would doing something like this consume a large
amount of
\__________/ resources? the thing with this is that if someone can help
me achieve something like this, i will use it a couple of times.
But the biggest problem i am seeking a solution is how do i color only a
part of the text inside a QLineEdit so i get something like
//home/andrei/*.pdf*.cpp.
/Thank you for your time.
Andrei
More information about the Qt-interest-old
mailing list