ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

1 May 2021
2021-05-01×
1 May 2021
I
maybe someone here can help me... i know the basics of Qprocess, and how to launch and receive message for the process. my question is whether there is a way to connect to an program that is ALREADY running in the background. i realize that program would need to be designed to output data, but can qt connect to a prorogram that it doesn't "own"? thanks.
If you create an API for them both, yes. If it is a system deamon, for instance, you probably could interact with it using the OS.
R
Guys, I still don't get how to use slots/signals, specially how to annotate a method on Python. I want to have a method receiving an object/array from Qml and work on this on python. Then, I want to output to Qml either an Object or a Dictionary. So far, I have only one connection that uses QVariant. I could copy and paste, but I would still not have an understanding. On my search at the docs I could not find anything strictly related to these annotations.
A
I skirmish through the Slot part and I still can't understand how to use it. I mean: which types does it accept? How do I parameterize it? Which types can I return?
R
If there is any link on the docs, I will be glad to read about it. Thanks in advance!
can anyone help me please?
🇺
i need scroll down 1 div with selenium and i cannot do it
hey everyone , I have a question... maybe you know how set in the center a button into the grid ?
D
I tried with function setAlignment
A
RicardoI skirmish through the Slot part and I still can't understand how to use it. I mean: which types does it accept? How do I parameterize it? Which types can I return?
@Slot(str, str, str, result=None) result parameter is the return type other positional arguments are the data types of the arguments that will be used to typecast the data from qml when the slot is called Suppose you want to call this slot from qml : // lets say myFunc returns an integer x = myFunc("testStr", 123); The respective slot annotation(or decorator if you wish to call it that) should be like this @Slot(str, int, result=int) def myFunc(self, arg1, arg2): # Here arg1 is "testStr" # And arg2 is 123 return 3.141
let me write a very basic casting chart from python to qml data types: - int -> Integer - str -> String - None -> void - QList -> JSON Array - QHashMap -> JSON Object - QStringList -> JSON Array of strings
Calendar: May 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