qlistwidget

Qt QListwidget Icon Reposition and able to be saved.

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... ...

QListView/QListWidget with custom items

I'm writing my first Qt application with PyQt and am having some trouble creating a custom list view. I'd like the list to contain arbitrary widgets (one custom widget in particular). How would I go about this? It seems that the alternative would be to create a table or grid view wrapped in a scrollbar. However, I'd like to be able t...

QListWidget that resizes instead of scrolls

How do you change the behavior of a QListWidget so that it resizes its height instead of choosing a (seemingly arbitrary) height and adding scrollbars? See screenshot: The QListView's should fill up as much space horizontally as they can (creating as many "columns," if you will.) Then they wrap and make as many rows as necessary to fi...

How to save and load QListWidjet contents to/from QSetting with PyQt4?

I've got a QListWidget in my PyQt4 app. It contains folders paths. I want to save its contents to QSettings and load them later. I used this code to do this: def foldersSave(self): folders = {} '''create dict to store data''' foldersnum = self.configDialog.FolderLIST.count() '''get number of items''' if foldersnum: f...

QT ListWidget itemclicked into a String

I am trying to just click on an item in a list of items in a listwidget. I right clicked in my UI and went to the slot: void main::listWidget_itemClicked(QListWidgetItem* item) In there I can run commands ect... But I want the selected item that I click on to be set to a String... I tried using the CONNECT/SIGNAL route, but I came u...

QListWidget and Multple Selection

Hi all, I have a regular QListWidget with couple of signals and slots hookedup. Everything works as I expect. I can update, retrieve, clear etc. But the UI wont support multiple selections. How do I 'enable' multiple selections for QListWidget? My limited experience with PyQt tells me I need to create a custom QListWidget by subclassi...