-
QListwidget Icon
I have created Qlistwidget with Icon viewmode.
I can drag and drop icon within the list view
But how do i know the position of the icon so that i may save the position and display icon at the same position when i next time start my program.
Thanks you...
-
Re: QListwidget Icon
You can use the index / row of the listwidgetitem and store it in a file, along with the file name.
Next time read the info from file and load according to index :)
-
Re: QListwidget Icon
I think jasplye meant how to store coordinates of items. there was thread on this forum, but as I know there was not solution.
-
Re: QListwidget Icon
Thanks for you quick reply.
But i still have the issue.
Let's say i have only one icon in Qlistwidget and i drag the icon to the empty place within the list view , i will always get the same index just as before drag.