1. First you have to built for custom dialog with QtCreater
2. In your GUI, write the following code
from Inputfiles_Dialog import Inputfiles_Dialog
#Inputfiles_Dialog is the ui created by QtCreater
d = Inputfiles_Dialog(self.iface)
d.show()
if d.exec_():
self.Inputfiles_set = d.getInputs()
3. In your custom dialg,connect your buttonBox:
self.connect(self.OK_buttonBox, SIGNAL("accepted()"),self.ProcessInfo)4. In your custom dialg, add a function to return values:
.
.
.
def ProcessInfo(self):
#do somthing
.
.
.
self.accept()
def getInputs(self):
return usefulinfo