I have a QStandardItemModel full of filenames, and a file viewer widget. How do I synchronize the currently viewed file with the list's current item?
I have a QStandardItemModel full of filenames, and a file viewer widget. How do I synchronize the currently viewed file with the list's current item?
With signal and slots.
I tried doing it with the currentChanged() signal, but it's not emitted when the list is cleared or when it's not in focus.
which is ?
I am asking because I once used QTreeWidget and it's signal and I had no problems both when selection was changed with mouse or key... though I can't really check if it would work in your case
nevertheless You can try it out
My schedule makes my cry
My works makes my laugh
My life makes... oh...no....
to be honest I can not say a word about removing or clearing the list of items because I had to abandon writing it due to other more important project I am working on right now
If I find some time, I will go for it to check it out
My schedule makes my cry
My works makes my laugh
My life makes... oh...no....
Bookmarks