摘要: 一、取得当前系统的时间oracle:selectsysdate//查询年月日时分秒selectcurrent_date//查询年月日时分秒mysql:selectsysdate()//查询年月日时分秒selectcurrent_date//查询年月日selectcurrent_time//查询时分秒二、对日期值进行加减运算oracle:可以直接用加减符号对年进行加减add_month(date,m)//对月份进行加减,m为正的时候为加,为负时为减mysql:date_add(date,intervalexpressiontype)//date为日期,type为日期类型//加type:year, 阅读全文
posted @ 2013-09-09 14:20 SoulReaper 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: #include 用来管理和控制Gui应用程序的流程和设置 包括主要的事件循环---有系统事件和其他来源处理过的或者发送的事件 包括应用程序的初始化和终结 包括提供会话管理 包括大多数的系统扩展和应用扩展设置 鼠标,窗体颜色,字体,,窗体式样由他掌握#include 提供label窗口部件#include 提供一组命令按钮#include 使窗口部件水平排列#include 使窗口部件垂直排列#incldue 使窗口部件按照网格排列#include 提供一组水平或者垂直的滑动器#include 提供一组数字设定框#include 提供一个对话框框体#in... 阅读全文
posted @ 2013-09-09 14:16 SoulReaper 阅读(1167) 评论(0) 推荐(0) 编辑
摘要: insertItems(int ,QStringList);//从int开始插入条目; hide();//QWidget class,QComboBox class----隐藏窗体;setSizeConstraint(SizeConstraint)//QLayout class.---调整layout的大小 SizeConstraint()//QLayout class.---返回layout的大小 setMinimumSize()//QWidget class--保留窗体的最小大小 setWindowIcon();//QApplication class;QWidget class--设置窗 阅读全文
posted @ 2013-09-09 14:15 SoulReaper 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: 成员函数: show(); //基类为QWidget的派生类都有---弹出窗体 exec(); //QApplication class;QCoreApplication class;---进入事件循环,等待exit(); //QDialog class;QMessageBox class----使用模态弹出窗口 //QMenu class;----实施菜单同步 setRange(0,130); //QSpinBox class; QAbstractSlider class 派生的QSlider;---设置滑块和数字设定框的上下限; //==setMinimum(minimum);s... 阅读全文
posted @ 2013-09-09 14:13 SoulReaper 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: 数据成员:Q_OBJECT //当需要定义私有槽或者信号时需要在类开头加上 Qt::Horizontal //用来标识一个组件的方向,是Qt::Orientation的枚举元素Qt::Vertical //用来标识一个组件的方向,是Qt::Orientation的枚举元素Qt::CaseSensitivity //枚举变量 Qt::CaseSensitive //Qt::CaseSensitivity的枚举元素=1Qt::CaseInsensitive//Qt::CaseSensitivity的枚举元素=0QDialogButtonBox::ok //按钮组中的OK按钮 QDialog... 阅读全文
posted @ 2013-09-09 14:12 SoulReaper 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 主函数:#include int main(int argc,char *argv[]) { QApplication app(argc,argv); .......... return app.exec();} QCore include:QString //Qt类型字符串QChar //Qt类型字符QStringList//Qt类型字符串列表QVariant//Qt类型类似unionQList //Qt类型模板类列表QDataStream out(&file);//提供有顺序的二进制数据给QIODevice;QRegExp//提供使用正则表达式的模式匹配QSettings ... 阅读全文
posted @ 2013-09-09 14:11 SoulReaper 阅读(501) 评论(0) 推荐(0) 编辑
摘要: QObject--QCoreApplication---QApplication --QWidget------------QAbstractButton----QPushButton ------QCheckBox ------------QAbstractSpinBox---QSpinBox ------------QAbstractSlider------QSlider ------------QFrame---------------QLabel --------------QAbstractItemView----QTableView ----QTa... 阅读全文
posted @ 2013-09-09 14:05 SoulReaper 阅读(350) 评论(0) 推荐(0) 编辑