Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
865 Topics 3.4k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Shiboken - Signals don't work

    Solved
    2
    0 Votes
    2 Posts
    707 Views
    V
    Turns out Shiboken shouldn't do anything for signals and let PySide setup the signals using the MOC data. Shiboken generates bindings for signals as if they were plain methods and shadows the actual signals. I ended up wrapping the signals with an ifdef: #ifndef BINDINGS_H Q_SIGNALS: void positionChanged(qint64 position); #endif
  • Use C# DLL and QT C++

    Unsolved
    2
    0 Votes
    2 Posts
    859 Views
    SGaistS
    Hi, See this stack overflow answer for several possibilités.
  • Translation of text from controlscript in maintenancetool

    Unsolved
    1
    0 Votes
    1 Posts
    450 Views
    No one has replied
  • Qt 6 LinguistTools for Android and iOS is missing

    Unsolved
    1
    0 Votes
    1 Posts
    505 Views
    No one has replied
  • Unable to get display on QT window if i use pthread pipelining

    Unsolved
    5
    0 Votes
    5 Posts
    924 Views
    D
    Thank you for the reply . I am new to Qthread and comfortable with pthread, that is the reason behind I used it in my code. Let me go through the link and use qthread. Thank you for the sugesstion. If possible Please share me some tutorial links for qthreads which helps to build pipeline Thank you, Dhivya JR
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Way to display Selectable image thumbnails with names under like PC desktop?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    M
    @SGaist Huh I've read a little about that QListView and in conjunction with setViewMode(QListView.IconMode) I believe It can do the intended job I'll try that later when I have a little more free time for it and update. Thanks!
  • Shiboken - Problem linking to shiboken2.abi3.lib

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    It might be that you are linking to a static library (just a wild guess here).
  • Pysyde/QTableView: openPersistentEditor works only once?

    Unsolved
    11
    0 Votes
    11 Posts
    5k Views
    SGaistS
    There's no need to close them first. The issue here comes rather from the replacement of the delegate. There's no need for that. If you just set it in the constructor and trigger the persistent editors when you add a line, you should be fine. One thing that might be worth checking is why replacing the delegate does not close de persistent editor. I do not know whether it's on purpose as you asked for a persistent editor after all.
  • Controlling QT C++ Project from Python Script

    Unsolved
    4
    0 Votes
    4 Posts
    877 Views
    SGaistS
    Did you consider implementing an IPC solution ?
  • Problem with PySide6 and QtWebEngineWidgets module

    Solved
    9
    0 Votes
    9 Posts
    16k Views
    S
    @eyllanesc :ModuleNotFoundError: No module named 'PySide2.QtWebKitWidgets' how can i resolve it?in ubundu 20.04,python 3.8.5
  • PySide2 QToolButton stylesheets

    Solved
    2
    0 Votes
    2 Posts
    706 Views
    I
    Ok so I found out that I had to use MenuButtonPopup as value QToolButton[popupMode="MenuButtonPopup"] { padding-right: 20px; }
  • PySide2 with Python3 Built-In Multiprocessing

    Unsolved pyside2 python3 multiprocessing qthread
    3
    0 Votes
    3 Posts
    2k Views
    L
    I confirm the same observation, that the script runs with PyQt5 (pyqt5 5.15.4) installed via pip and fails when run with PySide2 (PySide2-5.15.2) installed via pip: QObject::moveToThread: Current thread (0x22b951c64b0) is not the object's thread (0x22b951c6c50). Cannot move to target thread (0x22b951c64b0) qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: direct2d, minimal, offscreen, webgl, windows. Following the advice of this thread (https://forum.qt.io/topic/93085/qt-python-development-pyside2/6), I removed the PySide2 installed via pip and installed the version via conda-forge (v 5.13.2) and was able to run the script. So, it appears a matter of packaging/dependencies rather than a strict inability for PySide2 to handle it or something related to the version.
  • QJSEngine with QUILoader undefined ui childe bject

    Unsolved
    1
    0 Votes
    1 Posts
    449 Views
    No one has replied
  • Can i use the same std::unique_ptr smart pointer in multiple Classes ?

    Unsolved
    3
    0 Votes
    3 Posts
    732 Views
    D
    thank you for your reply Ok i will try this
  • Copy folder qt c ++

    Solved
    5
    0 Votes
    5 Posts
    11k Views
    J.HilkJ
    Since QDir & QDir::EntryList has some serious trouble with (MacOS) app-bundles, I ended up implementing the QDirIterator solution @Chris-Kawa suggested: void copyAndReplaceFolderContents(const QString &fromDir, const QString &toDir, bool copyAndRemove = false) { QDirIterator it(fromDir, QDirIterator::Subdirectories); QDir dir(fromDir); const int absSourcePathLength = dir.absoluteFilePath(fromDir).length(); while (it.hasNext()){ it.next(); const auto fileInfo = it.fileInfo(); if(!fileInfo.isHidden()) { //filters dot and dotdot const QString subPathStructure = fileInfo.absoluteFilePath().mid(absSourcePathLength); const QString constructedAbsolutePath = toDir + subPathStructure; if(fileInfo.isDir()){ //Create directory in target folder dir.mkpath(constructedAbsolutePath); } else if(fileInfo.isFile()) { //Copy File to target directory //Remove file at target location, if it exists, or QFile::copy will fail QFile::remove(constructedAbsolutePath); QFile::copy(fileInfo.absoluteFilePath(), constructedAbsolutePath); } } } if(copyAndRemove) dir.removeRecursively(); }
  • Confused about how connect is passing argument to a function

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    eyllanescE
    @TenG XY Problem: https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem
  • Pyd cannot be imported, using shiboken6 to bind

    Solved shiboken qt6 binding pyside6 c++
    4
    0 Votes
    4 Posts
    3k Views
    Cr0ssC
    Hi @SGaist, I took you advice and finally found out where the problem is. I looked into Wependency Walker and realized that I can import PySide6.QWidgets before I import wiggly, So that the dlls needed is already loaded for wiggly. I've been testing wiggly using one single import wiggly in IPython, not runing the main.py directly in the examples, trying to copy dlls from one place to another, and kept getting ImportErrors. Now I write: import PySide6.QtWidget import wiggly and it works. Thanks for your help!
  • what would be a good editor to put an assembly function into QT from a library

    Unsolved
    2
    0 Votes
    2 Posts
    556 Views
    jeremy_kJ
    I'm under the impression that Visual C++ has disallowed inline assembly for x64 for a while. Quoting from https://docs.microsoft.com/en-us/cpp/assembler/inline/inline-assembler?view=msvc-160: Inline assembly is not supported on the ARM and x64 processors.