Unsolved QT table view delegate
-
I can't set a default value for a delegate. I googled and didn't succeed.
Do i need to do it on insert a row level. I thought setEditor is the point where editor is set. Setting a default value in constructor doesn't solve the problem.
Only after clicking on an element i see the value.
-
Assuming that you have written the delegate. createEditor method will be called when you click on it. You can check with debug statements in the constructor. Either you can set the value or set flag such that editor is open from start.
-
@dheerendra Wow. Thank you. Haven't considered flags