PDA

View Full Version : syntax highlighting items of QListWidget and numbering of lines of QListWidget



kerim
31st March 2011, 13:57
hello,

i am coming with actually two question, hope this is ok:

i would like to use QSyntaxHighlighter and highlight QString entries within a QListWidget --> what would be the best way to achieve this (if possible), since QSyntaxHighlighter needs a QTextDocument to do this
i have a QListWidget and i would like to know the best way to put numbers to each row (without actually changing the item itself), any ideas?


thnx alot.

kerim
1st April 2011, 10:00
any ideas or hints in regard to this :confused:?

kerim
1st April 2011, 10:32
for those who are interested, the solution for the first question can be found within post:
http://www.qtcentre.org/threads/22537-QTableWidget-QListWIdget-with-syntax-highlighting

i guess the second thing can be done in quite the same way.

sorry for not having looked in depth within the forum, the answer was there actually.
thnx anyway.