1

I'm creating a text editor using QT Widgets, with tabs like VS Code, and when I open a file with QFileDialog I want to rename the tab title to the name of the file just like normal text editor do, I've found the QFileDialog::getOpenFileName() but that method returns the full path, and I want to return only the file name. Is it possible ?

Fady's Cube
  • 158
  • 1
  • 7

0 Answers0