Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
869 Topics 3.4k Posts
Qt 6.11 is out! See what's new in the release blog
  • Translating between NL and EN

    Unsolved
    4
    0 Votes
    4 Posts
    1k 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
    628 Views
    No one has replied
  • QtJambi 6.5.3 available

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

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

    Unsolved
    2
    0 Votes
    2 Posts
    828 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.
  • What are Qt widget components doing in the background?

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    SGaistS
    At the beginning of times, creating a GUI, be it on Windows or Linux, was something that wasn't easy to learn nor do and was not reusable at all. Qt was created to make the life of developers way easier as well as provide a framework that allows you to write your code once and then build it on a per platform basis. If you want another example, try to show an OpenGL window using native APIs vs doing with Qt. Qt is: simplicity elegance cross platform
  • Qt remote

    Solved
    3
    0 Votes
    3 Posts
    832 Views
    P
    I figured it out. Qt Remote Objects
  • QtJambi 6.5.1 available

    java qt6 qt6.5 ui design language
    1
    0 Votes
    1 Posts
    793 Views
    No one has replied
  • Qt & QML on standard web browser

    12
    0 Votes
    12 Posts
    17k Views
    T
    Something new for this topic: QML/HTML Browser based on QT and Chrome. Support most of QML features like 2D, 3D, Charts, Multimedia and other stuff. https://github.com/Toorion/qml-browser
  • QtJambi 6.5.0 available

    java qt6.5.0 ui design language bindings
    1
    0 Votes
    1 Posts
    722 Views
    No one has replied
  • QtJambi 6.4.4 available

    1
    1 Votes
    1 Posts
    503 Views
    No one has replied
  • Cross compilation C++ Linux -> Windows with Qt5

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    @Golgotho what is the error left ?
  • jakarta ee 10 with qt jambi

    Unsolved qtjambi jakarta
    3
    0 Votes
    3 Posts
    1k Views
    Z
    Sorry for this question. Jakarta has a lot functionality but it's for web development. Can I use Qt for web development?
  • Help Needed With Pyqtdeploy

    Unsolved
    1
    0 Votes
    1 Posts
    783 Views
    No one has replied
  • QtJambi 6.4.3 available

    binding language java qt5 qt6
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • conan access to Qt

    Unsolved
    2
    0 Votes
    2 Posts
    928 Views
    JKSHJ
    Hi @katang, and welcome! Conan support has been discontinued, unfortunately: https://www.qt.io/blog/conan-package-manager-pilot-to-end-in-december
  • 0 Votes
    8 Posts
    2k Views
    S
    @JonB said in Create a method that takes in a sorted array of integers and returns a sorted array of the same integers.: My loop only runs while (i < j). I was too concentrated on the loop body, so I overlooked that. You are right!
  • Sould we use stdafx.h in Qt Creator?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    C
    Thank you Chris Kawa for your explanation. It's all I need to know.
  • erreur : undefined reference to `viOpenDefaultRM@4'

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    C
    In the compilation output the error is displayed as follow : 16:01:10: Start: "C:\Qt\Tools\mingw810_32\bin\mingw32-make.exe" -j8 C:/Qt/Tools/mingw810_32/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Directory Entry 'C:/Users/operateur/Documents/CB/WD_V5-masterv2' mingw32-make[1]: Nothing to do for 'first'. mingw32-make[1]: Leaving the directory 'C:/Users/operateur/Documents/CB/WD_V5-masterv2'
  • 0 Votes
    2 Posts
    848 Views
    Chris KawaC
    I am new in QT using C++ 98 It's almost 2023. It's time to move on :) As for the code - it's kinda all over the place. You're just iterating over some widgets. Why do you even need a signal mapper here? Especially since you map those widget to themselves? That doesn't make sense. find_child will return nullptr if it couldn't find anything. You're not checking that so you're probably getting nullptr and then trying to call btn->setStyleSheet on it. That will crash. Those buttons don't seem to be children of the signal mapper. At least there's no code here that would make them that. Your signal mapper doesn't have any children here, so find_child won't find anything and will return nullptr. You should call find_child on the actual parent of those buttons. In any case, find_child operates on object names, not variable names. Are these widgets actually named with setObjectName()? If not then find_child will not find them and return nullptr.