ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

27 July 2021
2021-07-27×
27 July 2021
what is happening to freenode these days (IRC network) ? people moving to other IRC servers ?
ohhh ... "Freenode IRC staff resign en masse, unhappy about new management"
I
ok yeah they all moved to libera. sorry for offtopic
Hey Guys, How to create popup window for create some information ? I want to create registration popup window like any website
D
Maybe send me some tutorial for about this
Mr.sobhaniФотография
Depends on what Kind of table this is. If it's a QTableWidget then you can get the items in the cells via item = self.item(i, j) Where self is your table instance and i and j are the rows and columns. You might loop over them all or the specific column and its rows to get all the states ... And then item.checkState() is QtCore.Qt.Checked...
Ë
If it is a QTableView this totally depends on how the checking is implemented on the model used and you might query it to get the checked states.
C
I remember someone was asking about how to properly replace context properties some time ago, so I just wanted to share that we finally updated a bit the qml code in the pyside repo https://codereview.qt-project.org/c/pyside/pyside-setup/+/357115 (including examples, and the few tutorials) If someone has a nice idea to add a new tutorial, please do 🙏 I would gladly review the patch so it's merged before 6.2 is out. we only have a couple, so more are welcomed (even one of those needs to be upgraded :P) If you want to grab one of the examples we have and transform it into a tutorial that would also work
I
is there a dedicated website that lists job offers that involve development with pyqt/pyside ? probably not but worth asking
I have 2 identical files loading javascript into a QWebEngineView
I
The first one , works ! The second one doesn't
I
can you show the code ?
28b562ea725f9587cd0897beb1281fce widgets.py 28b562ea725f9587cd0897beb1281fce ngl.py
I
there are identical
I
running the widgets.py returns : js: Access to XMLHttpRequest at 'http://mmtf.rcsb.org/v1.0/full/1crn' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. js: Uncaught (in promise) error loading file: 'network error'
I
it has no origin, not even 'file://'
But the point is : it works in one file, but doesn't in the other one... But both files are same !
Looks like there is a hidden variable somewhere
I
Seems the filename is the reason...
there are other flags related to CORS
I
qtwebengine is a dirty beast
I
My guess is that QWebEngine stored a variable somewhere in the filesystem
would be cleaner to have your html stored in a separate file and use file:///./page.html URL
I
but you use a template so ...
I removed the file and now it doesn't work
I
lets try to load as file using StringIO
I
when you say .local do you mean a .local folder in the current directory, or $HOME/.local ?
I
no, you should avoid setHtml(), it has nasty implications
Suraminiac I suppose chromium from QWebEngineView create a file here
I
using the python file name 🤪
yeah it stores what you pass in setHtml(), and uses your python program's filename. Not nice.
what you can do, which is more elegant
is just run a small flask service in your app
I
and then tell qtwebengine to go to flask's URL
I
do you know you can use emoji as variable name ?
I
Фотография
click to show
ah in javascript ... yeah that doesn't surprise me. thought you meant in python
i wrote a dapp for galacteek in QML. It's nice to be free of HTML but some things are just very difficult to achieve
I
list views are just not good enough for rendering text IMO
I
yes, That's why I keep using Qt widgets. There are no good Tree view in qml . And I am not a designer
yeah item views are quite poor in QML, you can only do very basic stuff
Calendar: July 2021
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