Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
862 Topics 3.4k Posts
QtWS25 Last Chance
  • QtJambi 6.9.0 available

    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • gdal

    Solved
    5
    0 Votes
    5 Posts
    109 Views
    SGaistS

    Glad you found out and thanks for sharing !

    How did you end up with two different versions of that library ?

  • 0 Votes
    10 Posts
    625 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.

  • 0 Votes
    5 Posts
    728 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
    4
    0 Votes
    4 Posts
    774 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
    751 Views
    D

    Issue created: https://bugreports.qt.io/browse/PYSIDE-3017

  • QtJambi 6.8.2 available

    1
    0 Votes
    1 Posts
    117 Views
    No one has replied
  • Qrcode-Qtzint vba code

    Unsolved
    2
    0 Votes
    2 Posts
    164 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
  • 0 Votes
    5 Posts
    947 Views
    InTheBeningingI

    This might help.

  • QtJambi 6.8.1 available

    1
    0 Votes
    1 Posts
    204 Views
    No one has replied
  • 0 Votes
    12 Posts
    1k Views
    T

    @jsulm It's an empty line:
    Screenshot 2024-11-12 130412.png

  • 0 Votes
    2 Posts
    271 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
    537 Views
    M

    @Reds how did you establish which font was the problem, because I have the same issue. Thanks.

  • QtJambi 6.8.0 available

    1
    2 Votes
    1 Posts
    205 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
    174 Views
    No one has replied
  • QtJambi 6.7.2 available

    1
    0 Votes
    1 Posts
    256 Views
    No one has replied
  • QtJambi 6.7.1 available

    1
    0 Votes
    1 Posts
    206 Views
    No one has replied