title: How do I edit the properties of controls made using QTCreator in Slot declaration?
body: <p>I made a form using QTCreator. Then I change some of its properties in class constructor  like</p>
  
  <pre><code>ui-&gt;cancelButton-&gt;hide();
  </code></pre>
  
  <p>It work. Now I declare a custom slot in header file &amp; tried to use controls' properties in Slot implementation in class file (i.e .cpp) like</p>
  
  <pre><code>oldName = lineEDit-&gt;text();
  </code></pre>
  
  <p>but I get error msg</p>
  
  <pre><code>error: 'LineEdit' was not declared in this scope      
  </code></pre>
  
  <p>then I tried like</p>
  
  <pre><code>oldName = ui-&gt;nameLine-&gt;text();
  </code></pre>
  
  <p>but it gives same error. How do I use controls' properties in Slots declaration or other functions when I made UI using Designer ?? </p>
  
  <p><strong>EDIT: SLOT SOURCE</strong></p>
  
  <pre><code>void addressbook::addContact()
   {
       oldName    = ui-&gt;nameLine-&gt;text();  //nameLine-&gt;text();
       oldAddress = ui-&gt;addressText-&gt;toPlainText(); //addressText-&gt;toPlainText();
  
       nameLine-&gt;clear();
       addressText-&gt;clear();
  
       updateInterface(AddingMode);
   }
  </code></pre>