I would say that the find button should take into consideration ALL of the data filled in on the form.

In any case, the form could provide a slot that gives the search data, e.g. a map of field name to string data QMap<QString, QString>.

Qt Code:
  1. // form with line edits cpp
  2. void lineeditform::slotGiveSearchData(QMap<QString, QString>& data)
  3. {
  4. // grab data from ui and put in map
  5. }
  6.  
  7. //results.hpp - your widget with find button and search results
  8. class results : QWidget
  9. {
  10. Q_OBJECT
  11. ...
  12.  
  13. private slots:
  14. void slotFind();
  15.  
  16. signals:
  17. signalGetSearchData();
  18. };
  19.  
  20. // results form cpp
  21. results::results(...)
  22. {
  23. // connect find button clicked() to slotFind() slot
  24. // connect signalGetSearchData to slotGiveSearchData on lineedit form
  25. }
  26.  
  27. void results::slotFind()
  28. {
  29. QMap<QString, QString> searchData;
  30. // use signal signalGetSearchData
  31. emit signalGetSearchData(searchData);
  32.  
  33. // we now have the data.
  34.  
  35. // Do your search...
  36. }
To copy to clipboard, switch view to plain text mode