def __init__(self, parent=None):
QWidget.__init__(self, parent)
allLayout = QVBoxLayout()
self.l1 = QListWidget(self)
self.l1.setObjectName("search_result_list")
self.l1.setViewMode(QListView.ListMode)
# self.l1.currentItemChanged.connect(self.f1click)
self.l1.itemDoubleClicked.connect(self.item_dclick)
allLayout.addWidget(self.l1)
self.setLayout(allLayout)
# self.setWindowFlags(Qt.FramelessWindowHint | Qt.Popup)
# self.setFocusPolicy(Qt.ClickFocus)
# self.setAttribute(Qt.WA_ShowWithoutActivating)
# self.l1.setAttribute(Qt.WA_ShowWithoutActivating)
self.setFocusPolicy(Qt.StrongFocus)
# self.l1.setFocusPolicy(Qt.NoFocus)
# print(parent.finder)
# self.setFocusProxy(parent.finder)
评论列表
文章目录