Results 1 to 3 of 3

Thread: syntax highlighting items of QListWidget and numbering of lines of QListWidget

  1. #1
    Join Date
    Mar 2011
    Posts
    45
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default syntax highlighting items of QListWidget and numbering of lines of QListWidget

    hello,

    i am coming with actually two question, hope this is ok:
    1. 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
    2. 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.

  2. #2
    Join Date
    Mar 2011
    Posts
    45
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: syntax highlighting items of QListWidget and numbering of lines of QListWidget

    any ideas or hints in regard to this ?

  3. #3
    Join Date
    Mar 2011
    Posts
    45
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: syntax highlighting items of QListWidget and numbering of lines of QListWidget

    for those who are interested, the solution for the first question can be found within post:
    http://www.qtcentre.org/threads/2253...x-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.

Similar Threads

  1. QListWidget syntax highlight
    By Ken_Afford in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2010, 15:54
  2. QTableWidget || QListWIdget with syntax highlighting
    By ericV in forum Qt Programming
    Replies: 7
    Last Post: 21st August 2009, 13:26
  3. Multiple Lines per item in a QListWidget/QListView
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2008, 21:44
  4. QListWidget custom numbering ?
    By pshah.mumbai in forum Newbie
    Replies: 5
    Last Post: 14th July 2008, 14:29
  5. Getting all items of a QListWidget
    By Codepoet in forum Qt Programming
    Replies: 3
    Last Post: 17th January 2006, 22:52

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.