title: Post HTTP request from qt5 using qml
body: <p>Hi everyone, 
             I am trying to send the http post request from my qt app. I have read alot and still struggling to get some concepts of signals and slots. Would be nice if somebody can help me out from here..</p>
  
  <p>here is my qml code snippet:</p>
  
  <pre><code>TextField { id: u_name; placeholderText: userText(); Layout.fillWidth: true; style: StyleTextField {} }
                  TextField { id: p_text;   echoMode: TextInput.Password;  Layout.fillWidth: true; style: StyleTextField {} }
                  Button {
                      id: signInButton
                      text: "Sign In";
                      style: StyleButton {}
                      Layout.fillWidth: true;
                      //Layout.alignment: Qt.AlignTop;
                      signal esLoginClicked()
                      onClicked: {
                          if (u_name.text.length)  Settings.userText =  u_name.text;
                          if (p_text.text.length)  Settings.passText  = p_text.text;
                        signInButton.esLoginClicked().connect(esLogin(u_name.text,       p_text.text));
                          page_stack.pop();
                      }
                  }
  </code></pre>
  
  <p>Here I am trying to get username and password from user and want to pass it to slot "esLogin" that I have declared in my header file using signal esLoginCLicked() which I have created here only.  My header files looks like this...</p>
  
  <pre><code>Q_OBJECT
  Q_PROPERTY(QString userText  READ userText  WRITE setUserText NOTIFY userTextChanged)
  Q_PROPERTY(QString passText  READ passText  WRITE setPassText NOTIFY passTextChanged)
  
   public:
   static esQuickSettings *instance(void);
  
   public:
   QString userText(void);
   QString passText(void);
  // void esLoginClicked(void);
  // void esLoginClicked(const QString&amp; userText, const QString passText);
  
   public:
   void setUserText(const QString&amp; user);
   void setPassText(const QString&amp; passt);
   void esLogin(const QString&amp; userText, const QString&amp; passText);
    signals:
   void userTextChanged(void);
   void passTextChanged(void);
  </code></pre>
  
  <p>but somehow I am not able to make it work and missing some key concept here to make signal and slot work. </p>
  
  <p>P.S: I want to take input from QML and put in slot which will have the definition in cpp file respective to header.  </p>