I made two widgets using QT Designer which have their own header and source files like this,
Widget-1:
Qt Code:
  1. form1.ui
  2. ui_form1.h
  3. form1.h
  4. moc_form1.cpp
  5. form1.cpp
  6. main.cpp
To copy to clipboard, switch view to plain text mode 

Widget-2:
Qt Code:
  1. form2.ui
  2. ui_form2.h
  3. form2.h
  4. moc_form2.cpp
  5. form2.cpp
  6. main.cpp
To copy to clipboard, switch view to plain text mode 

Form1 has QlineEdit and QCheckBox, and user will put the input on the Widget1 and after putting the input. User will press the pushButton and Widget2 will start executing. On Widget2, i want to use the values and conditions of the first widget's LineEdit and ChechBox. Can anyone tell me how i can do this. It will be of great help. Thanks