Gio wrapper for Qt applications.
Go to file
deepin-bot[bot] edaf3ea1aa
chore: Sync by 1086c873ff (#26)
chore: Sync by 1086c873ff
2022-08-12 01:59:33 +00:00
.github/workflows chore: Sync by 1086c873ff (#26) 2022-08-12 01:59:33 +00:00
archlinux feat: add archlinux build 2022-06-22 09:41:13 +08:00
debian fix: 右键dock栏上的挂载图标,dock栏崩溃并且消失 2021-03-08 16:18:47 +08:00
gio-qt fix: 解决内存泄漏问题 2021-03-22 18:20:15 +08:00
qgio-tools Title:chore change GPLv3 to LGPLv3 2020-04-26 11:58:15 +08:00
test refactor: classname rename, minor documentation 2019-08-07 17:51:36 +08:00
.gitignore feat: add interface for g_volume_get_identifier. 2019-09-05 14:00:46 +08:00
CMakeLists.txt fix(doc): extract static function documentation 2019-08-01 15:27:03 +08:00
LICENSE Title:chore change GPLv3 to LGPLv3 2020-04-26 11:58:15 +08:00
README.md rebuild 2019-08-29 07:59:37 +08:00

gio-qt: Qt wrapper library of Gio

Description

This is a Qt wrapper library for Gio (or say it's a glib/glibmm wrapper mainly focused on GIO module). This library is designed to be exception-free and avoid Qt application developer do direct access to glib/glibmm (so they can use Gio in a more Qt way).

Build

Build depts:

  • cmake >= 3.12.4
  • pkg-config (to find and use giomm module)
  • Qt5Core >= 5.6.3
  • Qt5Test (if you would like to build tests)
  • giomm-2.4
  • doxygen (to build documentations)

If you are using an older system which are using a lower cmake version and attempt to build this library, please turn off the BUILD_DOCS option.

Build manually

$ cd /path/to/your/source/code
$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install

It will installed to /usr/local/lib by default. You may also need to do a sudo ldconfig /usr/local/lib after install.

Questions and Answers

Should I use?

Before this library release it's first stable tag (1.0.0) the answer is mostly no since the API may change at any time, and since this library is mainly for Deepin product for now so only the APIs we need will be implemented at first.

If you are writing a non-Qt application, please consider using glibmm. If you are writing Qt application and really wanna use this library, consider wait its API stable release or create a fork and start hacking!

What about generate Qt binding using GObject Introspection

As you can see gio-qt currently is a hand-crafted Qt/C++ bindings for GIO. Using GObject Introspection (gir) to generate code could be a really good idea but we currently doesn't have very enough time to look into it.

It's definitely worth to look into gir to generate Qt binding and actually there was some cool guys working on this idea (see GObject Consume) and worth to check it out. Due to the project time limit so we are not going to use it currently, but we encourage you contirbute on that project if you are familiar to gir.

Documentation

For Deepin there will be a libgio-qt-doc package, if you are building it manually with BUILD_DOCS option enabled, there will be a docs folder inside your build folder, and there will be a doxygen generated html folder and also a gio-qt.qch for QtCreator.

License

GPLv3