M
M
mikhaelshcherbakov2018-07-01 23:55:00
Python
mikhaelshcherbakov, 2018-07-01 23:55:00

How to make clickable cards?

I still can’t bring to life the idea of ​​\u200b\u200bhow to make it so that there are cards on the side, when pressed, detailed information about each of them comes out. I thought to do it somehow using QListView. But it didn't work. I wanted to do something like this:
5b393d2640f2b665696489.jpeg
How to make them clickable and at the same time they can be scrolled up and down, added and removed. I've been suffering for a day now. I scream for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2018-07-02
@bbkmzzzz

QListView fires a clicked event with the index of the model element, subscribe to the signal and handle it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question