V
V
Victor Potebenko2021-01-08 03:37:29
Python
Victor Potebenko, 2021-01-08 03:37:29

How to set BatchSize and LayoutMode on QListWidget?

Hello, it is required that only three items are displayed in the QListWidget (meaning at a time, i.e. for one wheel scrolling; there are 12 items in the QListWidget).
This code should have solved my problem, but nothing has changed

list_.addItems(('Привет', 'всем', 'одписчикам', 'ставьте', 'лайки', 'делайте', 'репосты', 'звоните', 'в', 'колокол'))
list_.setLayoutMode(QtWidgets.QListView.Batched)
list_.setBatchSize(3)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question