I can't even resize the dialog window. Something weird is happening when I return the editor that's changing the geometry of the QFileDialog.

Qt Code:
  1. QWidget *createEditor(
  2. QWidget *parent,
  3. const QStyleOptionViewItem &option,
  4. const QModelIndex &index
  5. ) const {
  6. Q_UNUSED(option);
  7. Q_UNUSED(index);
  8.  
  9. QFileDialog* editor = new QFileDialog(parent);
  10. editor->setFilter("*.png");
  11. editor->setDirectory(mResources);
  12. editor->setGeometry(0,0,1000,500);
  13. editor->exec() // <--- big file dialog;
  14.  
  15. return editor; // <--- tiny file dialog;
  16. };
To copy to clipboard, switch view to plain text mode