title: Connecting a slot to a button in QDialogButtonBox
body: <p>I created a standard buttonBox from QtDesigner with Ok, Cancel, Reset.</p>
  
  <p>I successfully connected the Ok and Cancel buttons using,</p>
  
  <pre><code>self.buttonBox.accepted.connect(self.accept)
  self.buttonBox.rejected.connect(self.reject)
  </code></pre>
  
  <p>even defining my own accept function.</p>
  
  <p>So how would I connect the reset button to say function "foo()". I really have no idea. I read the docs about assigning roles and stuff, and its confusing. </p>
  
  <p>Thanks in advance.</p>