Unsolved Changing an image using QStyledItemDelegate in TableView
-
@VRonin
So far I came across 2 problems.- If I add
ui->tableView_Fix->setItemDelegateForColumn(3, new ImageDelegate(this));
to fixdb.cpp , nothing happens, because myDelegate.cpp evaluates which cell the user clicked on. I can add
return new ImagePickButton(parent);
to myDelegate createEditor and it returns the button, but I couldn't figure out how to connect imageDelegate to the existing code. Please advise which is the best solution.
- The button is about 10px smaller on the top and on the left than the original cell. How can I make it bigger to cover the size of the original cell (originally its 100 x 100). It doesn't respond to any of the size settings.
Thank you for your help.