Results 1 to 3 of 3

Thread: Qtpropertybrowser: How do I know the current state of a textbox?

  1. #1
    Join Date
    Sep 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Question Qtpropertybrowser: How do I know the current state of a textbox?

    QT version: 5.1.1.
    Platform: Windows.
    Language: c++

    Dear beloved programmers,

    I've ported the 'Qtpropertybrowser' from Qt 4.x to Qt 5.1.1.
    This is running smoothly without any problems.

    However I do have a problem. How do I know when a user is done modifying a property?
    With other words: "How do I Know when the user finished entering text inside a textbox (User has closed the textbox by for ex. pressing the enter key)"?

    Problem is that I would like to make changes when the user is done modifying and not every-time he enters a character inside the textbox.

    Thanks in advance,

    Staakman

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qtpropertybrowser: How do I know the current state of a textbox?

    If the text box is a QLineEdit, see its editingFinished() signal

    Cheers,
    _

  3. #3
    Join Date
    Sep 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qtpropertybrowser: How do I know the current state of a textbox?

    Unfortunately the answer is not that simple.

    http://stackoverflow.com/questions/4...hanged-signals

    Can't make much sense of this though.

Similar Threads

  1. Replies: 3
    Last Post: 15th April 2013, 18:42
  2. Finding the current state of a QStateMachine
    By pherthyl in forum Qt Programming
    Replies: 3
    Last Post: 18th July 2012, 15:14
  3. Change state property within a current state?
    By prophet0 in forum Qt Quick
    Replies: 1
    Last Post: 30th May 2012, 19:23
  4. How to get the current state of QStateMachine
    By QTie in forum Qt Programming
    Replies: 2
    Last Post: 1st June 2011, 13:23
  5. QtPropertyBrowser with a QStandardItemModel
    By mclark in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2010, 08:51

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.