Results 1 to 1 of 1

Thread: Qt Creator syntax highlighting

  1. #1
    Join Date
    Jun 2006
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question Qt Creator syntax highlighting

    Consider this header file:
    Qt Code:
    1. #include <QListView> //doesn't highlight...
    2. //#include <QtWidgets> //highlights...
    3. //#include <QtWidgets/QListView> //doesn't highlight...
    4. //#include <QtGui/QListView> //highlights...
    5.  
    6. class IssueView : public QListView //...QListView here
    7. {
    8. Q_OBJECT
    9. public:
    10. IssueView();
    11. };
    To copy to clipboard, switch view to plain text mode 
    When editing this file in Qt Creator 2.7.0 (and using Qt 5.0.2), QListView is either highlighted or not (see in-code comments), depending on the (mutually exclusive single) #include. The way highlighting works implies it mingles with Qt4, doesn't it?

    My build is ok and based solely on the Qt5 local to my home as the compile output confirms. The system version in /usr is Qt4 but shouldn't be used.

    Is my guess correct? How can I overcome this?
    Last edited by zaphod.b; 11th June 2013 at 18:33. Reason: rephrased to clarify

Similar Threads

  1. Qt Creator syntax highlighting for yacc/lex files
    By creep33 in forum Qt Tools
    Replies: 1
    Last Post: 9th July 2010, 23:59
  2. Syntax Highlighting for CUDA Code
    By jiddoo in forum Qt Tools
    Replies: 1
    Last Post: 14th April 2010, 10:50
  3. QTableWidget || QListWIdget with syntax highlighting
    By ericV in forum Qt Programming
    Replies: 7
    Last Post: 21st August 2009, 14:26
  4. Refreshing syntax highlighting
    By jpn in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2006, 21:09
  5. A Qt4 editor part with syntax highlighting and stuff?
    By mgoettsche in forum General Discussion
    Replies: 3
    Last Post: 22nd January 2006, 17:32

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.