Results 1 to 2 of 2

Thread: Detect change of any QLineEdit in a QGridLayout

  1. #1
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Detect change of any QLineEdit in a QGridLayout

    I have 21 lineEdit fields in a gridLayout within a groupBox. I want to be able to trigger a signal when any one of these fields is changed. Is there a way to detect any change in a gridLayout, or in a groupBox? Or in any lineEdit in the form?
    Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Detect change of any QLineEdit in a QGridLayout

    Since there are no signals associated with QGridLayout or QGroupBox (they are not widgets) I have adopted the brute force method of 21 signal connects to a single slot. On reflection this is the obvious way to do it, and I was just being lazy.

Similar Threads

  1. detect system time change
    By ahmdsd_ostora in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2019, 12:04
  2. Detect change to any cell in a QTableWidget
    By gib in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2018, 06:03
  3. Replies: 19
    Last Post: 30th August 2014, 23:56
  4. Replies: 1
    Last Post: 19th July 2013, 23:20
  5. QFileSystemWatcher best way to detect change
    By hakermania in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2011, 15:51

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.