Results 1 to 7 of 7

Thread: QtCreator warning underlines in text editor

  1. #1
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default QtCreator warning underlines in text editor

    Is there a way to disable the yellowish underlining thing in the text editor when it thinks there is an issue?

    I've looked all over and I can't seem to find an option that does it.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtCreator warning underlines in text editor

    You can resolve the issue Apart from that I don't think this is currently possible.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtCreator warning underlines in text editor

    I must admit I find a lot of false positives... this is not always working as expected.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtCreator warning underlines in text editor

    For me it only doesn't work if I use prf files. Apart from that everything is predictable. Can you pinpoint the conditions where false positives occur?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtCreator warning underlines in text editor

    Write this in a header file:

    Qt Code:
    1. #include <QTextDocument>
    2. QTextDocument::FindFlag a;
    To copy to clipboard, switch view to plain text mode 

    Including this file will not fail compilation, howerver, this line will not be recognized as a valid line. I can give you full sources to reproduce this problem if you want ;-)

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtCreator warning underlines in text editor

    I don't get a false positive with that one. I'm using Creator 1.3.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtCreator warning underlines in text editor

    I get no underlines on 1.2.1 either.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. Replies: 3
    Last Post: 13th December 2007, 17:10
  3. Column Selection Text Editor
    By zyxue in forum Qt Programming
    Replies: 1
    Last Post: 20th June 2007, 09:28
  4. Creating simple text editor from the eamples code
    By overcast in forum Qt Programming
    Replies: 4
    Last Post: 14th February 2007, 16:46
  5. Phrasis - A no frills writer oriented text editor
    By jrideout in forum Qt-based Software
    Replies: 0
    Last Post: 19th December 2006, 09:13

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.