开发者

How do I make a button update a QT table?

When the user clicks on a specific row and column and selects "Edit", there 开发者_开发技巧is a window that pops up declaring true or false. Everything works except the OK button which updates the table.

Illustrated below:


|Program Name, Blocked |

|Firefox, True |

|Emacs, False |

Say the user clicks True on Firefox and changes permissions, how do I get the window to update the table to False on Firefox?

Thanks in advance.


If you are using model/view and overloading the setData function, then the dataChanged signal must be emitted from the model to notify the view that the cell must be redrawn.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜