code: def copyFilepath( self ):
          
          clipboard = QApplication.instance().clipboard()
          clipboard.setText(self.filepath())
          clipboard.setText(self.filepath(), clipboard.Selection)
docs: Copies the current filepath contents to the current clipboard.