ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

19 January 2022
2022-01-19×
19 January 2022
S
is it possible to create a new component positioned under the caller window? I have property var consoleWin: Qt.createComponent("console.qml").createObject(mainWindow, {x: mainWindow.x, y:mainWindow.x + mainWindow.height}) in mainWindow, but every time I move mainWindow, a new "consoleWin" is spawned. I don't know if something like createObject(mainWindow, {anchors.top: mainWindow.bottom}) could work
S
I'll try that then, with loader is it possible to define the initial position? Ideally, it should be anchored to main window, but I can just set the initial x and y
M
Can I somehow give the called object in a loader parameters? Like I can do with createComponent?
M
Is there an easy way of resizing an rectangle in QML? DragHandler is super easy for moving already
I
@cmaureir When you will have a short time, a simple exemple showing how to use a qt c++ function in a python code would be helpful. QString Test::hello() ==> print(test.hello())
C
Traceback (most recent call last): File "/app/bin/zapzap", line 5, in <module> from zapzap.main import main File "/app/lib/python3.9/site-packages/zapzap/__main__.py", line 7, in <module> from zapzap.main_window import MainWindow File "/app/lib/python3.9/site-packages/zapzap/main_window.py", line 4, in <module> from zapzap.browser import Browser File "/app/lib/python3.9/site-packages/zapzap/browser.py", line 1, in <module> from PySide6.QtWebEngineWidgets import QWebEngineView ModuleNotFoundError: No module named 'PySide6.QtWebEngineWidgets'
I'm compiling to a flatpak packaging
R
I put it to force the compilation of these packages and it didn't work either. python3 setup.py install --verbose-build --skip-docs --build-type=shiboken6 --prefix=${FLATPAK_DEST} --module-subset=QtWebEngine,QtWebEngineCore,QtWebEngineWidgets
you are not forcing them to be built, you are saying "only build those modules
C
by default that will pick up all the Qt modules you have related yout qtpaths binary
I
have you inspected the filesystem of the flatpak to see where qtwebengine is built ?
Ссылка
click to show
- name: shiboken6 buildsystem: simple build-options: prepend-path: /usr/lib/sdk/llvm12/bin prepend-ld-library-path: /usr/lib/sdk/llvm12/lib build-commands: - python3 setup.py install --verbose-build --skip-docs --build-type=shiboken6 --prefix=${FLATPAK_DEST} --module-subset=QtWebEngine,QtWebEngineCore,QtWebEngineWidgets sources: - type: git url: https://github.com/qtproject/pyside-pyside-setup.git branch: 6.2.1 commit: 4cc0c0beb5519e03c9c2adeb61ffb4a5ea38a2fc - name: pyside6 buildsystem: cmake-ninja builddir: true build-options: prepend-path: /usr/lib/sdk/llvm12/bin prepend-ld-library-path: /usr/lib/sdk/llvm12/lib config-opts: - -DCMAKE_BUILD_TYPE=Release - -DBUILD_TESTS=OFF - -DCMAKE_SKIP_RPATH:BOOL=YES sources: - type: git url: https://github.com/qtproject/pyside-pyside-setup.git branch: 6.2.1 commit: 4cc0c0beb5519e03c9c2adeb61ffb4a5ea38a2fc - type: shell commands: - mkdir -p /app/include/qt6tmp && cp -R /usr/include/Qt* /app/include/qt6tmp # https://bugreports.qt.io/broswse/PYSIDE-787 - sed -i 's|--include-paths=|--include-paths=/app/include/qt6tmp:|' sources/pyside6/cmake/Macros/PySideModules.cmake
R
My script for compilation
C
you are spamming maaaany messages in the other platforms that are linked to this channel
using pip3 binaries should work, but it doesn't either.
the strange thing is that using the PyQt5 or pyqt6 binaries works perfectly. But pyside 2 or 6 doesn't, it's always this error: ImportError: libshiboken6.abi3.so.6.2: object file has no loadable segments
R
I'm about to give up on pyside and rewrite in pyqt6 🥲🥲
I
i've seen this error from someone else recently ... he didn't find any answer
Calendar: January 2022
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog