Which Widget for Showing Lists of Objects?
I'm relatively new to QT and I need a little help with one of my windows.
I have a vector that holds a self-made struct, which then holds a persons name and a value attached to it. I want to display the name and value in a spreadsheet esque way that is also scroll-able and has the ability to select specific names
Hi and welcome to devnet,
Have a look at Qt's Model/View documentation, it's a good starting for this kind of need.
To start simple you can use a QTableWidget
You are able to find the tutorial here: "Model/View tut":http://qt-project.org/doc/qt-4.8/modelview.html and here: "Second one":http://qt-project.org/doc/qt-5.1/qtwidgets/model-view-programming.html
Try the examples and it should be very simple to comprehend. Don't give up half way, at first it's a bit confusing ;-)