I have a QTreeview that's hooked to a model that manages data from an in-house data object.
In the model I have a list of QTreeViewItems which I basically use to keep track of parent and child counts and nodes.
The problem is..if I open a project that already contains data the tree displays that information. However, if I start the application and the first thing I do is create a project, when I create the first data entry, nothing is displayed. I never hit the paint method for my delegate. My proxy model's filterAcceptsRow is returning true as expected. I just don't ever hit the paint method in my delegate. I've checked the row and column count and the data is being added and the rowCount menthod on my model is returning 1 as expected. The only thing I can think of is there is something I'm missing in the setup that only has an affect only in this case. Has anyone run into this issue?
FYI: Here are the cases I'm seeing.
1) Start app; open project with data; data displays; close project and create new project; data displays.
2) start app; create project; NO data displays; open project with data; no data displays.
Basically, the behavior is different depending on whether the first thing I do is open an existing/populated project or create a new project.
Bookmarks