Question

I have a QTableView with some items in it. If i click on any row, that particular row has to expand with some QPushButtons in it. I had attached the screen shot of it. How can i achieve this? Need ur help. Thanks in Advance.enter image description here

Was it helpful?

Solution

This could easily be done with QML.

If you check out the Models and Views: ListView Example, the expanding delegates example does exactly what you need.

The picture that you describe above could be built in QML as QML ListView with embedded QML Row Elements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top