Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
861 Topics 3.4k Posts
  • gdal

    Unsolved
    2
    0 Votes
    2 Posts
    8 Views
    SGaistS

    Hi and welcome to devnet,

    Does you script work properly when called directly on the command line in your conda environment ?
    Are you starting your application within the activated conda environment ?

  • 0 Votes
    10 Posts
    603 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
    675 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
    738 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
    735 Views
    D

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

  • QtJambi 6.8.2 available

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

    Unsolved
    2
    0 Votes
    2 Posts
    146 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
    935 Views
    InTheBeningingI

    This might help.

  • QtJambi 6.8.1 available

    1
    0 Votes
    1 Posts
    192 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
    261 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
    525 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
    200 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
    166 Views
    No one has replied
  • QtJambi 6.7.2 available

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

    1
    0 Votes
    1 Posts
    199 Views
    No one has replied
  • How to use "import std" in C++

    Unsolved
    7
    0 Votes
    7 Posts
    4k 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++.