开发者

qt designer and data bound controls?

can I use QT Designer 4 to create / design tables开发者_C百科 or other controls with automatic binding to database connections?

Or must I write specific code for that in my application?

(i'm using python 2.5 with pyqt 4.8 on Windows xp, if it matters)

Thanks.


Yes, Qt supports this using the MVC model, but you need some code (not too much really) to make the Database connection and some settings of a QSqlTableModel, which can be later shown with a QTableView.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜