On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote:
>DQt contains new experimental bindings for using a subset of Qt with D.
It would be nice if there were bindings for sciter, wxwidget
, etc.
Thread overview | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 05, 2021 DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
DQt contains new experimental bindings for using a subset of Qt with D. Qt is a library for writing cross-platform graphical user interfaces. Currently bindings exist for the Qt modules core, gui and widgets. The bindings use extern(C++) and don't need any wrapper in C++. They are based on Qt 5.15.2 and tested on Linux and Windows, but need a dmd compiled from master for Windows. For more details see the README.md in the repository: https://github.com/tim-dlang/dqt It is also available with dub: https://code.dlang.org/packages/dqt |
December 05, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | Thanks for sharing! Don't forget to settopics (D, QT, binding, ui, gui for example) , it's in the same menu as your "About" one This helps discoverability on github a lot! |
December 05, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to russhy | On Sunday, 5 December 2021 at 14:13:21 UTC, russhy wrote:
> Thanks for sharing!
>
> Don't forget to settopics (D, QT, binding, ui, gui for example) , it's in the same menu as your "About" one
>
> This helps discoverability on github a lot!
Thanks for the suggestion. I have added some topics.
|
December 05, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote: > DQt contains new experimental bindings for using a subset of Qt with D. > Qt is a library for writing cross-platform graphical user interfaces. > Currently bindings exist for the Qt modules core, gui and widgets. The > bindings use extern(C++) and don't need any wrapper in C++. They are > based on Qt 5.15.2 and tested on Linux and Windows, but need a dmd > compiled from master for Windows. > > For more details see the README.md in the repository: > https://github.com/tim-dlang/dqt > > It is also available with dub: > https://code.dlang.org/packages/dqt no dynamic cast problems (https://issues.dlang.org/show_bug.cgi?id=21690)? |
December 05, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to user1234 | On Sunday, 5 December 2021 at 17:11:09 UTC, user1234 wrote: > > no dynamic cast problems (https://issues.dlang.org/show_bug.cgi?id=21690)? I did not see this problem. Qt uses a custom implementation for dynamic casts of objects inheriting from QObject, which is independent from C++ dynamic_cast. See function qobject_cast: https://doc.qt.io/qt-5/qobject.html#qobject_cast |
December 06, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote: >DQt contains new experimental bindings for using a subset of Qt with D. It would be nice if there were bindings for |
December 06, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote:
> DQt contains new experimental bindings for using a subset of Qt with D.
> Qt is a library for writing cross-platform graphical user interfaces.
> Currently bindings exist for the Qt modules core, gui and widgets. The
> bindings use extern(C++) and don't need any wrapper in C++. They are
> based on Qt 5.15.2 and tested on Linux and Windows, but need a dmd
> compiled from master for Windows.
>
> For more details see the README.md in the repository:
> https://github.com/tim-dlang/dqt
>
> It is also available with dub:
> https://code.dlang.org/packages/dqt
Nice work!
Did you use any converter to describe classes automatically, or is it all manual?
|
December 06, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to MGW | On Monday, 6 December 2021 at 08:28:58 UTC, MGW wrote:
> On Sunday, 5 December 2021 at 12:54:21 UTC, Tim wrote:
>> DQt contains new experimental bindings for using a subset of Qt with D.
>> Qt is a library for writing cross-platform graphical user interfaces.
>> Currently bindings exist for the Qt modules core, gui and widgets. The
>> bindings use extern(C++) and don't need any wrapper in C++. They are
>> based on Qt 5.15.2 and tested on Linux and Windows, but need a dmd
>> compiled from master for Windows.
>>
>> For more details see the README.md in the repository:
>> https://github.com/tim-dlang/dqt
>>
>> It is also available with dub:
>> https://code.dlang.org/packages/dqt
>
> Nice work!
> Did you use any converter to describe classes automatically, or is it all manual?
I wrote a converter, but also had to make many manual changes.
|
December 06, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | > I wrote a converter, but also had to make many manual changes.
I realized that without a converter you can't do this kind of volume ... I'm thinking about a converter too, I keep thinking and thinking ((((
Please - more comments in the examples, a lot of non-obvious constructions. The library is great, I really liked it!
|
December 07, 2021 Re: DQt: Qt bindings using extern(C++) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim | On Monday, 6 December 2021 at 16:14:03 UTC, Tim wrote: >I wrote a converter, but also had to make many manual changes. It would be interesting to have a |