Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
863 Topics 3.4k Posts
  • shiboken2 binding and preprocessor flags.

    Unsolved
    2
    0 Votes
    2 Posts
    82 Views
    SGaistS
    Hi and welcome to devnet, I don't have shiboken2 at hand but if the options are the same as shiboken6, you can use: --clang-option="-D MY_DEFINE" and that should do the trick.
  • QtJambi 6.9.0 available

    java qt6 language bindings
    1
    0 Votes
    1 Posts
    96 Views
    No one has replied
  • gdal

    Solved
    5
    0 Votes
    5 Posts
    257 Views
    SGaistS
    Glad you found out and thanks for sharing ! How did you end up with two different versions of that library ?
  • Creating C language bindings for Qt - Where do I start?

    Solved c++ to c c language bindings
    10
    0 Votes
    10 Posts
    948 Views
    A
    For anyone interested, I've started a set of such bindings here: https://github.com/seaqt/seaqt-gen - the output can be seen here: https://github.com/seaqt/seaqt - the project is based on miqt (go bindings) with the aim to expose as much functionality as possible to C such that it can be imported into any language that has good FFI / C interop capabilities (such as https://nim-lang.org/), though there is of course nothing preventing the use of these bindings from C natively - the generated code is actually pretty simple to follow / use.
  • Can't set the icon on the Windows build

    Unsolved pyqt6 pyqt pyinstaller icon qt for python
    5
    0 Votes
    5 Posts
    1k Views
    A
    @Luuk00101 did you find a solution for this ? I am kinda stuck on this as well !
  • How do I create real C# bindings for Qt6?

    Unsolved qt 6 csharp dotnet bindings
    4
    0 Votes
    4 Posts
    996 Views
    R
    I'm interested in contributing here if anyone has gotten the ball rolling
  • singleton in python, with qobject

    Solved
    3
    0 Votes
    3 Posts
    4k Views
    P
    @jazzycamel Although your post is almost 7 years old at this point, it still works flawlessly. I created an account just to thank you for this haha :D (PS - For others stumbling upon this, here's a simple implementation for PyQt6) import collections from PyQt6.QtCore import QObject class Singleton(type(QObject)): def __init__(cls, name, bases, dict): super().__init__(name, bases, dict) cls.instance = None def __call__(cls, *args, **kw): if cls.instance is None: cls.instance = super().__call__(*args, **kw) return cls.instance class WindowManager(QObject, metaclass=Singleton): def __init__(self, parent=None, **kwargs) -> None: # Always call the parent class's __init__ first super().__init__(parent, **kwargs) # Window configuration self.window_width = 550 # Fixed width for equation windows self.window_height = 250 # Fixed height for equation windows self.window_margin = 20 # Margin from screen edge self.vertical_gap = 20 # Gap between windows # Calculate max windows that fit on screen self.max_windows = 3 # Use deque with dynamic maxlen to auto-remove old windows self.active_windows = collections.deque(maxlen=self.max_windows) self.window_positions = [] # Track positions of windows window_manager = WindowManager()
  • QCanDbcFileParse load error

    Solved
    19
    0 Votes
    19 Posts
    1k Views
    D
    Issue created: https://bugreports.qt.io/browse/PYSIDE-3017
  • QtJambi 6.8.2 available

    java qt6 kotlin language bindings
    1
    0 Votes
    1 Posts
    152 Views
    No one has replied
  • Qrcode-Qtzint vba code

    Unsolved
    3
    0 Votes
    3 Posts
    261 Views
    jsulmJ
    @Alexespo This is Qt forum. Why are you asking about Visual Basic here?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • When I include <Python.h> I get this error in object.h line 190 how do I fix this?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    InTheBeningingI
    This might help.
  • QtJambi 6.8.1 available

    qt6 java language bindings kotlin
    1
    0 Votes
    1 Posts
    246 Views
    No one has replied
  • PyQt6 program randomly crashing without any error, falling into despair

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    T
    @jsulm It's an empty line: [image: 74b4ffb8-5e30-418f-acfa-1b80f1c79421.png]
  • PyQt, Widgets, and Threading. Simple example of incorrect GUI update?

    Unsolved
    2
    0 Votes
    2 Posts
    346 Views
    SGaistS
    Hi, While it's a pretty goal to show why it's wrong to update widgets from a different thread, you might have issue reproducing this at will. This is in the zone of undefined behaviour and depends highly on the OS beside what you are modifying and it might just work for a while, do something funky or crash the application. Also, there might also be the architecture of Python itself that could be at play since it's currently not a true multithreaded language if you take the GIL into account.
  • My Qt Creator 14 shows abnormal characters!

    Solved
    6
    0 Votes
    6 Posts
    675 Views
    M
    @Reds how did you establish which font was the problem, because I have the same issue. Thanks.
  • QtJambi 6.8.0 available

    java qt6 language kotlin qtjambi
    1
    2 Votes
    1 Posts
    238 Views
    No one has replied
  • ReferenceError: require is not defined .js

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    artwawA
    6 years later you ok, dude?
  • use shiboken fro a C++ class to create bindings for python

    Unsolved
    1
    1 Votes
    1 Posts
    207 Views
    No one has replied
  • QtJambi 6.7.2 available

    java qt6 language bindings qtjambi
    1
    0 Votes
    1 Posts
    300 Views
    No one has replied