如何将Firebird DB与Qt连接? [英] How to connect Firebird DB with Qt?

查看:134
本文介绍了如何将Firebird DB与Qt连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的是Firebird的新手,我想实施一个非常简单的任务,以便了解如何使用它.您能给我一个链接或一段代码,其中包含一些有关如何使用Qt到达Firebird的信息吗?

I am really new to Firebird and I want to implement really really easy task in order to understand how I can work with it. Can you please give me a link or a piece of code with a little information about how I can reach Firebird using Qt ?

非常感谢大家

推荐答案

Qt工具包包含许多出色的SQL驱动程序,其中还包括FireBird SQL驱动程序. http://doc.qt.io/qt-5/sql-driver.html#qibase-for-borland-interbase

The Qt toolkit contains many great SQL drivers and among them is also an FireBird SQL driver. http://doc.qt.io/qt-5/sql-driver.html#qibase-for-borland-interbase

要在Windows/Linux上使用它,您需要重新编译驱动程序 这是一个嵌入Firebird的示例: . http://www.codeproject.com/Articles/47457/QT和嵌入式FireBird入门

To use it on windows/linux you need to recompile the driver Here is one example with Firebird embedded : . http://www.codeproject.com/Articles/47457/Get-Started-with-QT-and-Embedded-FireBird

您还可以使用Qt附带的mingw编译器重新编译它: 构建驱动程序插件QIBASE Qt 4.7.3

Also you can recompile it with mingw compiler that comes with Qt : Build driver plugin QIBASE Qt 4.7.3

这篇关于如何将Firebird DB与Qt连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆