Hi, I have the following working code but I only want to display the actual file name (not the entire file path) in the "openFileNameLabel" label. How can I do this?

void Blaster::setOpenFileName()
Qt Code:
  1. {
  2. QFileDialog::Options options;
  3.  
  4. QString selectedFilter;
  5.  
  6. fileName = QFileDialog::getOpenFileName(this,
  7. tr("Select a Blaster File)"),
  8. openFileNameLabel->text(),
  9. tr("Blaster Files (*.cmd);;Text Files (*.txt)"),
  10. &selectedFilter,
  11. options);
  12. if (!fileName.isEmpty())
  13. openFileNameLabel->setText(fileName);
  14.  
  15.  
  16. }
To copy to clipboard, switch view to plain text mode 

any help is appreciated. Thanks