qgis-sample-QgsFileWidget.py
# coding: utf-8 from PyQt4.QtGui import QDialog from qgis.gui import QgsFileWidget new_dialog = QDialog() new_dialog.resize(165, 40) file_widget = QgsFileWidget(new_dialog) new_dialog.show()