You can maintain a list of sort -
When a label is clicked you can get the file name from the list and load the full image and show in some other label/window.Qt Code:
To copy to clipboard, switch view to plain text mode
You can maintain a list of sort -
When a label is clicked you can get the file name from the list and load the full image and show in some other label/window.Qt Code:
To copy to clipboard, switch view to plain text mode
You can also reconsider to use a graphic scene for that thumbnail list, which would be not so expensive. (Then you coud use setData() with user role)
But for your solution, simply add a member variable to your widget which inherits the label.
Qt Code:
{ m_myFilePath = file; } { return m_myFilePath; }To copy to clipboard, switch view to plain text mode
Bookmarks