1

私は研究所のプロジェクトを開始しています。サイトに送信する前に、(言語のタイポグラフィ規則に従って) テキストを修正するために使用するツールである「web-typograph」を作成してみます。「多言語」ライブラリを作成したいので、私の選択は Qt を使用した C++ です (Ruby、Python、PHP などから使用できることを意味します)。

正直なところ、QtRuby、QtPython (PHP Qt でさえ...) について何か聞いたことがありますが、ライブラリをそれらにバインドする方法を想像できません。

PS はい、ググってみました。しかし、経験者のいくつかのコメントはいいでしょう:)

4

1 に答える 1

0

PyQt and the other bindings to Qt are bindings to the core Qt library. To add bindings to your own (possibly Qt-based) classes, you'll have to use tools like SWIG or SIP (PyQt's tool which may be more relevant for Qt-related classes) to generate the bindings. Alternatively, you can make a C API to your library which is easier to wrap and bind from scripting languages.

That said, you should first understand what you need Qt for at all. Are you planning a GUI or using any other capabilities Qt provides? Which?

于 2010-11-01T12:59:15.580 に答える