gpt4 book ai didi

mysql - Qt qtablewidget数据录入、保存和访问

转载 作者:行者123 更新时间:2023-11-29 23:51:12 25 4
gpt4 key购买 nike

我是一名学生,也是 qt 的新手,我正在开发一个使用 qt tablewidget 的小项目。类似的数据要输入到表小部件中,然后存储在数据库中,其他人可以从其他页面访问。我不知道如何将输入的数据保存在表小部件中,以及如何连接到数据库(云)并将数据保存在那里,以便其他人稍后可以访问。任何人都可以建议我一些链接、代码等来实现这个吗?谢谢。

最佳答案

看看this tutorial :

Every UI developer should know about ModelView programming and the goal of this tutorial is to provide you with an easily understandable introduction to this topic.

Table, list and tree widgets are components frequently used in GUIs. There are 2 different ways how these widgets can access their data. The traditional way involves widgets which include internal containers for storing data. This approach is very intuitive, however, in many non-trivial applications, it leads to data synchronization issues. The second approach is model/view programming, in which widgets do not maintain internal data containers.

关于mysql - Qt qtablewidget数据录入、保存和访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25645160/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com