qlistwidget
qlistwidgetitem with custom widget doesn't look selected on the UI
I have a Qlistwidget in icon mode and I\'m using setItemWidget to display my elements in my custom widgets, so far this is working.[详细]
2023-03-12 06:12 分类:问答How do I set the selected item in a QListWidget?
I am adding two items to a listwidget using the code below. Now I want to set \"Weekend Plus\" as selected item in the listwidget, how do I do that?[详细]
2023-03-11 12:36 分类:问答QListWidget or QListView with QItemDelegate?
Let\'s say I need to display a list of items. Each item contains a QPushButton an image and some text. When a user click开发者_运维百科s on the button something should happen (ie I need to get the sig[详细]
2023-03-05 17:29 分类:问答Customize QListWidgetItem with extra data to store in, How?
The QListWidgetItem contains 2 data: icon and text. And I want to store another QString in it. How can I do? Here is my test code.The ListWidget displays nothing after I call addItem.[详细]
2023-03-02 17:15 分类:问答QListWidget send doubleClicked signal with no items
I have a QListWidget on a dialog that I want to do something (for example, open a QFileDialog window) when a user double-clicks on the QListWidget. Unfortunately, the void doubleClicked (const QModelI[详细]
2023-02-20 14:46 分类:问答fill listbox in qt creator
I\'m working on Qt Creator and I am completely new to it. I want to have a list box which is loaded with the data when I run the program and I choose a value from the list box and press button and do[详细]
2023-02-18 09:33 分类:问答Customize PyQt multi-touch pan gestures on QListWidget
I\'m having a problem with a simple Notepad application I\'m writing to teach myself basic Python/PyQt.[详细]
2023-02-12 05:30 分类:问答Copy selected items from QListWidget filled with filenames to the clipboard, but as files (not text)
I have a QListWidget which I fill with filenames, when user hits Ctrl+C I want to place the filenames to th开发者_开发技巧e clipboard, so if the user hits Ctrl+V in a file manager the files will be co[详细]
2023-02-10 16:55 分类:问答PyQt4: How do you iterate all items in a QListWidget
Currently,I use the following while loop in a class that inherits QtGui.QListWidget to iterate all items:[详细]
2023-02-02 21:39 分类:问答Make QListWidget only show 1 item
I have created a class that inherits the QListWidget and is meant to be a stack of cards. I have overloaded the drag and drop functions to allow a card to be dragged to the table (another object of m[详细]
2023-01-27 12:30 分类:问答