您正在查看 "Qt" 分类下的文章
2009-11-25 09:56
2009-11-22 00:41
this->codec=QTextCodec::codecForName("UTF-8");
m_ui->butall->setText(codec->toUnicode("猪猪")); |
2009-11-19 19:04
//start
#include "stuin.h"
#include "ui_stuin.h"
Stuin::Stuin(QWidget *parent)
: QWidget(parent), ui(new Ui::Stuin |
2009-11-18 11:42
#include "strmod.h"
int strmod ::rowCount(const QModelIndex &parent) const{
return this->stringList.count();
}
QVariant strmod::data(co |
2009-11-18 11:03
#include "mythread.h"
Mythread::Mythread(QString myfn)
{
this->fn=myfn;
|
2009-11-18 11:02
#include <QtGui/QApplication>
#include <QSplitter>
#include <QDirModel>
#include <QTreeView>
#include <QListView>
|
2009-11-17 22:22
#include <QtGui/QApplication>
#include "mainwindow.h"
#include "login.h"
#include <QDebug>
int main(int argc, char *argv[])
|
2009-11-02 11:09
//start
#include <QtCore/QCoreApplication>
#include <QSqlDatabase>
#include <QDebug>
#include <QSqlQuery>
#include <Q |
2009-10-31 21:44
2009-10-31 01:14
remote

//start
#include "mainwindow.h"
//end
local

|
2009-10-30 22:24
先编译一下 odbc的
//start
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QSqlDatabase>
#include <QDebug>
|
2009-10-30 17:04
//start yjydll.h
#ifndef YJYDLL_H
#define YJYDLL_H
#include "yjydll_global.h"
#include <stdio.h>
|
2009-10-30 13:44
2009-10-29 17:43

终于成功 了
注意事项:
1》mysql for qt 编译用 vc2008 nmake
2> 程序编译用 release
3> dll 文件 , 用depends22_x86 检查一下 , 发现还要用到mysql \lib\libmySQL.dll
|
2009-10-28 23:05
qmake -o Makefile "INCLUDEPATH+='E:\Program Files\MySQL\MySQL Server 5.0\include' " "LIBS+='E:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib' " mysql.pro
很神奇的加上 ' ' 就好了
写程序用release 写 ,
//start
#include "mainwindow.h"
#include "ui_mainwindow.h"
|
|
|