Connecting to Databases To access a database with QSqlQuery or QSqlQueryModel, create and open one or more database connections. Database connections are normally identified by connection name, not by database name. You can have multiple connections
Qt中的每个类,都有一个对应的同名头文件,其中包含其类定义.例如要使用QApplication类,则需要在程序中添加" #include <QApplication>" QApplication类用于管理应用程序范围内的资源.其构造函数需要main函数的argc和argv作为参数. widget被创建时都是不可见的(always created hidden).widget中可容纳其它widget. Qt中的widget在有用户行为或状态改变时会emit sig