Note that there are some explanatory texts on larger screens.

plurals
  1. USJonathan Thomas
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThis turned out to be a rather mundane issue. I had moved this class to a second directory, but for some reason qmake didn't mark the MainWindow class that was using the QWidget-derived class as being needed to rebuilt. Adding the pointer as a member variable changed the class's size, which caused memory corruption issues upon deletion. The application target still linked since I hadn't changed the ABI of the class's constructor, but the change of size of the QWidget-derived class is what caused all my issues.
      singulars
    2. COYeah, but that wouldn't explain the _double_ free. The non-member variable version also parented "this", so one would have expected the same behavior. It wound up being a corruption, not a double free, though. It turned out to be a memory corruption due to a file move and qmake not detecting it. I posted more details as a comment to my original question.
      singulars
    3. COI suppose that the documentation is inaccurate in that regard. (About the impossibility of using a custom delegate with an item-based view.) QTreeWidget and freinds are based off of the QTreeView classes (only offering a simplified interface for using QTreeItems), so it does appear that you can set custom delegates and such. At any rate you'll still probably need to take a look at the paint() function of the delegate. If you did a setFlags(flags() |= Qt::ItemIsEditable) on each of the items in the second column, your existing code would probably display the toolbutton on a double click.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload