Hi All

I am begginer in qt. I have just begun my adventure with qt.
I need to display in comboBox fileName.
I have QString filePath = "C:\\documnetnts\\filename.txt"
I want to receive/extract only name or name with extension : filename.txt / filename

I am trying something like this : (I found in docmunetation) : but It takes only the last 6 characters
QString fileName = filePath.right(12);
comboBox->addItem(fileName);

Could anyone help me please ?


I would appreciate for any help or advice