Results 1 to 2 of 2

Thread: Wrong yellow underlined with constructor

  1. #1
    Join Date
    Jun 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Wrong yellow underlined with constructor

    Hi my friends.
    I want to ask if this is problem of Qt Creator. (I use Qt Creator 3.5.0 opensource based on Qt 5.5.0, and use C++11)
    I write a next code :
    Qt Code:
    1. int c = 0;
    2. for(int a=0;a<m_s;a++) {
    3. for(int b=0;b<m_s;b++) {
    4. m_substCodeToPair[c] = std::pair<int,int>(a,b);
    5. c++;
    6. }
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 
    pair appear with a yellow-green underline, and if i move my mouse there it tell me "Too few arguments"
    If a compile, it compile fine, but Qt Creator always underline there.
    What i can do in order to remove this warning underline ?
    Daniel

  2. #2
    Join Date
    Jun 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Wrong yellow underlined with constructor

    Nobody answer.
    So i think it is a bug of Qt Creator.
    I resolve this in other way, instead of
    Qt Code:
    1. m_substCodeToPair[c] = std::pair<int,int>(a,b);
    To copy to clipboard, switch view to plain text mode 
    i can write
    Qt Code:
    1. m_substCodeToPair[c] = std::make_pair(a,b);
    To copy to clipboard, switch view to plain text mode 
    and now i not see any underline.
    I write this, for a case some other people use this std classes with Qt.
    Anyway QPair works at expected with Qt Creator.
    Daniel

Similar Threads

  1. Want the currentdate in QCalendarWidget to be underlined
    By ranjit.kadam in forum Qt Programming
    Replies: 21
    Last Post: 20th April 2011, 15:11
  2. Problems installing Qt4 on Yellow Dog 5.0
    By bizmopeen in forum Installation and Deployment
    Replies: 3
    Last Post: 19th December 2009, 08:15
  3. Replies: 1
    Last Post: 6th November 2009, 11:03
  4. How to make some part of text underlined in QLineEdit?
    By blonde in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 10:43
  5. How to make a QString text underlined?
    By blonde in forum Newbie
    Replies: 5
    Last Post: 29th October 2009, 09:19

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.