I’ve been working on this code for a few days and am just stuck on how to remove a selected row from the QLineEdit (list1). I understand that by using QStandardModel I can use removeRow() to remove a row at a certain index, but I can’t seem to figure out how to determine the specific […]
- Tags 260) self.list1.TopToBottom self.LabelB=QLabel("Enter your Name") self.model=QStandardItemModel(self.list1) self.text2=QLineE, but I can't seem to figure out how to determine the specific index of the selected row. Thanks! import sys from PyQt5.QtWidgets import(QAppl, enabled=False) self.button2=QPushButton("Remove", enabled=False) self.LabelA=QLabel("TAs on duty") self.text1=QLineEdit() self.list1=QListView(self) self.list1.resize(260, I've been working on this code for a few days and am just stuck on how to remove a selected row from the QLineEdit (list1). I understand that, QHBoxLayout, QLabel, QLineEdit, QListView) from PyQt5.QtGui import QStandardItemModel, QListWidget, QPushButton, QStandardItem class MainWindow(QWidget): def __init__(self): super().__init__() self.setWindowTitle("CS2316 Help Desk Queue", QTreeView, QTreeWidget, QVBoxLayout, QWidget, self