12 2015 档案

该文被密码保护。
posted @ 2015-12-31 09:42 ike_li 阅读(690) 评论(0) 推荐(0)
摘要:1. pro 添加 QT +=sql 2. void MainWindow::connectSqlServer() { QSettings *setIni = new QSettings("config.ini", QSettings::IniFormat); setIni->beginGroup( 阅读全文
posted @ 2015-12-19 10:48 ike_li 阅读(2194) 评论(0) 推荐(1)
摘要:1.创建个子窗体QDialog.在子窗体构造函数添加 Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); this->setParent(parent); this->s 阅读全文
posted @ 2015-12-09 14:13 ike_li 阅读(2828) 评论(1) 推荐(1)
摘要:1.在资源文件建立一个qss文件。如blue.qss 2. 调用 #include "mainwindow.h" #include <QApplication> #include<QFile> #include "mainframe.h" int main(int argc, char *argv[ 阅读全文
posted @ 2015-12-09 10:46 ike_li 阅读(1595) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-08 14:38 ike_li 阅读(6) 评论(0) 推荐(0)
摘要:1."$(document).ready(function(){});"也可以简写成“$(function(){});” 等这个页面全部加载完之后就去执行js,函数用于在当前文档结构载入完毕后立即执行指定的函数,该函数的作用相当于window.onload事件。 <body> <script src 阅读全文
posted @ 2015-12-04 11:27 ike_li 阅读(187) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-01 18:06 ike_li 阅读(2) 评论(0) 推荐(0)
摘要:一、添加程序图标 1.添加程序显示图标 Qt5 添加程序图标在pro直接添加一句: RC_ICONS+=resource\appicons\app.ico resource程序代码目录下文件夹。 Qt4方式 1.在工程文件夹新建一个res目录,在res目录新建一个appicons文件夹目录。 2.把 阅读全文
posted @ 2015-12-01 16:47 ike_li 阅读(578) 评论(0) 推荐(0)