ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for December 2021
‹ December 2021 ›×
Hi guys, I want to sort my items in List widget but nothing is happening with these codes. Any idea ?
I
.sortByColumn(0, Qt.DescendingOrder)
I
Keith KyzivatDo you have any sample code you could share?
import os import sys from PySide6.QtWidgets import QApplication from PySide6.QtWidgets import QLineEdit from PySide6.QtWidgets import QMainWindow from PySide6.QtWidgets import QVBoxLayout from PySide6.QtWidgets import QWidget os.environ["QT_IM_MODULE"] = "qtvirtualkeyboard" class MainWindow(QMainWindow): def init(self): super(MainWindow, self).init() self.line_edit = None self.init_ui() def init_ui(self): self.line_edit = QLineEdit() self.line_edit2 = QLineEdit() self.layout = QVBoxLayout() self.main_widget = QWidget() self.main_widget.setLayout(self.layout) self.layout.addWidget(self.line_edit) self.layout.addWidget(self.line_edit2) self.setCentralWidget(self.main_widget) if name == "main": app = QApplication(sys.argv) mw = MainWindow() mw.show() sys.exit(app.exec_())
wait, i just remembered something regarding sorting in list widgets ...
I
what's the content of the model of the listwidget and what do you expect to happen ? alphabetical sorting right ?
Calendar: December 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