title: Two buttons one window
body: <p>I've got two push_buttons on dialog and both of them are meant to invoke QFileDialog window, with the difference that first button is for input files and second for output files, other than that logic is the same. What is the best way to connect those buttons to QFileDialog without doing any code repetion.</p>
  
  <p>P.S.<br>
  Ideally those two windows (Open File) would have different titles.</p>