I have created a form in qt designer which is basically a dialog box with line edit and a browse button to browse .csv files.

I am trying to connect this with QGIS so that as soon as a layer is loaded the dialog box pops up in which we can browse for the attribute file which is in .csv format.

I have written python logic also ,but i am not getting the dialog box asking for the file to browse.