joelthelion
5th March 2009, 18:24
Hi all,
I'm trying to implement an "open recently opened files" menu. For now I have successfully implemented the functions that write and retrieve the list of frequently needed files on the disk. I have also a piece of code that creates the menu entries dynamically.
My problem is that I need to connect the menu qActions to the function that will actually load the files, something like openFiles(QString& filename). How can you do the connection? I don't think something like
connect(my_action,SIGNAL(triggered(),this,SLOT(ope nFiles(myfile)));
is legal :( . Any insights?
I'm trying to implement an "open recently opened files" menu. For now I have successfully implemented the functions that write and retrieve the list of frequently needed files on the disk. I have also a piece of code that creates the menu entries dynamically.
My problem is that I need to connect the menu qActions to the function that will actually load the files, something like openFiles(QString& filename). How can you do the connection? I don't think something like
connect(my_action,SIGNAL(triggered(),this,SLOT(ope nFiles(myfile)));
is legal :( . Any insights?