Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
864 Topics 3.4k Posts
  • QtJambi 6.7.2 available

    java qt6 language bindings qtjambi
    1
    0 Votes
    1 Posts
    362 Views
    No one has replied
  • QtJambi 6.7.1 available

    qt6 java language bindings
    1
    0 Votes
    1 Posts
    305 Views
    No one has replied
  • How to use "import std" in C++

    Unsolved
    7
    0 Votes
    7 Posts
    5k Views
    S
    In the post linked by @cristian-adam there is the following comment: No, import std; has not yet been implemented. The plan is for the compiler to populate a CMake::CXX23 target with the requisite information and have that target provide import std; modules. There are discussions about how compilers/standard libraries should provide information for CMake to use and make such targets. I assume that the problem is that CMake does not know how to look up modules that are not provided by your own project. Because it cannot find the proper dependencies it will not build. I'm eagerly waiting for modules to work properly everywhere. This will be a huge boost for C++.
  • Is it possible to provide C API?

    Solved
    2
    0 Votes
    2 Posts
    482 Views
    JonBJ
    @3119369616 No. And if you were looking for anything "official" that would be The Qt Company, be aware that here we are a user forum. Also Qt is not a programming language, it's a set of code written in C++.
  • Class method returns an enum declared in the class . (COMPILATION ERROR)

    Solved
    3
    0 Votes
    3 Posts
    499 Views
    G
    @sierdzio Thank you very much for your quick answer!!! I have done this change and it works!!! Thanks!!!!! Have a good day,
  • QtJambi 6.7.0 available

    java qt6 language bindings
    1
    0 Votes
    1 Posts
    379 Views
    No one has replied
  • Pyqtdeploy and android

    6
    0 Votes
    6 Posts
    9k Views
    H
    Hi, I am unearthing quite an old topic, but I recently re-discovered pyqtdeploy and it seems to be fairly relevant these days: cross-compilation with Python is a hot topic. Although there is documentation online about pyqtdeploy, it is hard to figure out specific steps to set up the tool. I have decided to update the documentation and upgrade a bit the tool on my side first. If you wish to convert your PyQt5 apps into Android apps, follow the in-depth tutorial on https://github.com/achille-martin/pyqt-crom. There is no official support for PyQt6 in my repo yet though. So please start with PyQt5 to build prototypes and I am expected to add support for PyQt6 later.
  • How to make work PySide6 binding examples work?

    Unsolved
    1
    0 Votes
    1 Posts
    416 Views
    No one has replied
  • How to bind qt to python? (boost.python).

    Solved
    3
    0 Votes
    3 Posts
    654 Views
    M
    @JonB thanks for your reply. I found a similar topic on stackoverflow. That helped to solve my problem.
  • QtJambi 6.6.2 available

    java qt6 language bindings
    1
    0 Votes
    1 Posts
    396 Views
    No one has replied
  • Integrating Qt with SQL: Addressing Data Type Compatibility Issues

    Unsolved
    2
    0 Votes
    2 Posts
    526 Views
    JonBJ
    @Sachin-Bhatt The intention is that Qt SQL interfaces handle most if not all of SQL data types, and deal with SQLite correctly, so that you don't have to do what you say. I think you should give a couple of examples of data types where you have "data type compatibility concerns" and how it goes "wrong".
  • Using QDataWidgetMapper() with a tree-based model

    2
    0 Votes
    2 Posts
    2k Views
    _
    @tristam I know this is 10 years later, but have you figured out this issue?
  • pyside6 yocto

    Unsolved
    1
    0 Votes
    1 Posts
    471 Views
    No one has replied
  • [HELP] QT6 calling android java from c++

    Solved android java c++ bindings calling method
    4
    0 Votes
    4 Posts
    2k Views
    N
    @jhayar Could you please describe your solution to the "Can't toast on a thread that has not called Looper.prepare()"?
  • QtJambi 6.6.1 available

    java qt6 language bindings
    1
    1 Votes
    1 Posts
    392 Views
    No one has replied
  • Translating between NL and EN

    Unsolved
    4
    0 Votes
    4 Posts
    885 Views
    kkoehneK
    @RayKn said in Translating between NL and EN: What do I do at initialization? Do I install the dutch translator even though the program is already set at dutch (also in QT Creator Designer the language is set to dutch). I really feel like I am missing something. The Qt translation system at runtime doesn't know anything about specific langauges. It just checks the installed QTranslators one by one whether they provide a translation for the source string / context combo, falling back to the original source string if nothing is found. If you don't need a nl translation because all the source strings are already in correct language , then you can as well remove the .nl file. Then all you have to do to switch from English to Dutch is to remove the translation file by calling QCoreApplication::removeTranslator() with the QTranslator object as argument. Sometimes it's useful though to keep a (partial) translation, for instance to be able to fix typos, or to handle plural forms correctly. In this case, you might want to have a partial .ts file for NL (-pluralsonly argument). That said, if it's true that the nl file is contains a correct translation, then your setup should actually work (even if slightly inorthodox). I suggest at least checking the return value of your installTranslator calls... Kai
  • QtJambi 6.6.0 available

    java qt6 language bindings
    1
    0 Votes
    1 Posts
    382 Views
    No one has replied
  • QtJambi 6.5.3 available

    java qt6 qt6.5 language bindings
    1
    0 Votes
    1 Posts
    409 Views
    No one has replied
  • QtJambi 6.5.2 available

    java qt6 qt6.5 language ui design
    1
    1 Votes
    1 Posts
    442 Views
    No one has replied
  • Integration of QML and C++

    Unsolved
    2
    0 Votes
    2 Posts
    646 Views
    JKSHJ
    Hi, and welcome! @joeren said in Integration of QML and C++: The application that will publish the interface onto the module is called G2Link and will only push QML files. This sounds like a non-standard setup. I had a quick look at their website, but I can't see how to program their device using C++ at all. Your best bet is to contact tech support at Reach Tech.