Hi,

In the app I'm developing I need a custom FileOpen dialog. The dialog is basically the same as the standard QFileDialog however it needs two additional QLineEdits.

I've tried creating my own FileDialog by extending QFileDialog however I can't figure out how to add two additional widgets to it.

I tried the following however it obviously won't work as there is no "addWidget" method available.

Qt Code:
  1. MyFileDialog::MyFileDialog() : QFileDialog() {
  2.  
  3. setWindowTitle("Add Clip");
  4.  
  5. QLineEdit *trackNumberLineEdit = new QLineEdit;
  6. QLineEdit *startIndexLineEdit = new QLineEdit;
  7.  
  8. this->addWidget(trackNumberLineEdit);
  9. this->addWidget(startIndexLineEdit);
  10. }
To copy to clipboard, switch view to plain text mode 

Is this the right way to do this? If so, how is it done?

Cheers,

Chris