Results 1 to 5 of 5

Thread: QLineEdit question

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default QLineEdit question

    Hi to all!

    In my app I have many QLineEdits and one of them is producing warning:
    Qt Code:
    1. warning: Object::connect: No such signal QLineEdit::textChanged()
    To copy to clipboard, switch view to plain text mode 
    . Is there any quick way to find which one produces this debug warning?
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QLineEdit question

    Set environment variable QT_FATAL_WARNINGS=1, run your application via debugger and see the backtrace. Or search for occurrences of "SIGNAL(textChanged())"...
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QLineEdit question

    Where do I see backtrace window in Eclipse, I cannot find it ...
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: QLineEdit question

    It might be that you are connecting a textChanged signal, but in fact it has the following signature.

    Qt Code:
    1. void textChanged(const QString & text)
    To copy to clipboard, switch view to plain text mode 
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QLineEdit question

    Quote Originally Posted by lyuts View Post
    It might be that you are connecting a textChanged signal, but in fact it has the following signature.

    Qt Code:
    1. void textChanged(const QString & text)
    To copy to clipboard, switch view to plain text mode 
    Yes, I know that, I've found 30 mins ago the source of warning, I now want to know how to get a backtrace in Eclipse like previous suggestion ...
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. QLineEdit
    By rick_st3 in forum Newbie
    Replies: 1
    Last Post: 14th June 2008, 10:05
  2. Pointer Question related to QLineEdit
    By ChrisReath in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 16:13
  3. KeyPressEvent and QLineEdit question
    By impeteperry in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2007, 17:18
  4. QValidator, regular expressions and QLineEdit
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2007, 02:25

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
  •  
Qt is a trademark of The Qt Company.