title: Event Handling in Qt
body: <p>I am new to Qt GUI programming and come from a .NET/Winforms background as far as GUI development goes. I am using the Qt Creator IDE.</p>
  
  <p>How can I handle a button press event in Qt to do something like the following:</p>
  
  <pre><code>if (button.clicked = true)
  {
      startProgram();
  }
  </code></pre>
  
  <p>Also, how would I browse for a configuration file which would populate values into all of my line edit textboxes when opened? I am programming this in C++.</p>
  
  <p><strong>EDIT</strong>: I am taking a console app that someone else wrote and building a GUI around it. I want to access one of the functions in there from a button click event. However, I can't figure out how to get the functions of the original app to be in scope of the GUI which I have created when I try to use SIGNALS and SLOTS.</p>