ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

3 January 2021
2021-01-03×
3 January 2021
I
This evening I read the Model/View programming manual. It left me with more questions than answers. First, is there any way to get the code examples in python? I have a very limited understanding of C++ syntax. Also, I understand the Model doesn’t care about the structure of the underlying data, but it can define the indexes of the data for use by the View. You can also have different Views of the same Model. You can also use a Selection in a View to select specific data & then base another View on that Selection. I can understand the logic somewhat, and in some ways, it seems that pandas wouldn’t be needed except maybe for data manipulation, slicing, calculations, etc. is there anything else I can read to get a better understanding of where M/V starts & pandas begins & vice versa?
K
id 1201656962This evening I read the Model/View programming manual. It left me with more questions than answers. First, is there any way to get the code examples in python? I have a very limited understanding of C++ syntax. Also, I understand the Model doesn’t care about the structure of the underlying data,
I'm not sure what resources to point you at, but I can expound on the "selection in a view" bit you mention. There is a class called QSortFilterProxyModel - it allows you to do just that - provide another model class you chain onto your main model, that can filter or sort the model it contains. The main model remains unchanged, but the view can use the sorted/filtered model to display the data.
I
I think I read about that. It sounds similar to the QItemSelectionModel, which is what I was reading about. I can basically understand their use, but part of me thinks of setting up the model & view statically, and then use pandas to manipulate & change the underlying data connected to the Model.
Steve I cover all the usage case except Tree model
I
@thecompiler Hi ! From pytest-qt, is it a way to interract with a dialog executed from a function ? Ex: widget.on_set_directory() will launch a QFileDialog . I would like to set the dialog in my test
I
@thecompiler Ah sorry , I just figured out how it works ! I thought monkeypatch would not answer my problem ! But After a thrird lecture, it works ! And it is fabulous ! I just have to patch my exec_() method !
Calendar: January 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