(self)
定义承载功能的ListView
定义承载功能的ListView
定义承载功能的ListView
def setListViews(self):
        """定义承载功能的ListView"""
        self.navigationList = QListWidget()
        self.navigationList.setMaximumHeight(110)
        self.navigationList.setObjectName("navigationList")
        self.navigationList.addItem(QListWidgetItem(QIcon('resource/music.png'), " 发现音乐"))
        self.navigationList.addItem(QListWidgetItem(QIcon('resource/signal.png'), " 私人FM"))
        self.navigationList.addItem(QListWidgetItem(QIcon('resource/movie.png'), " MV"))
        self.navigationList.setCurrentRow(0)

        self.nativeList = QListWidget()
        self.nativeList.setObjectName("nativeList")
        self.nativeList.setMaximumHeight(100)
        self.nativeList.addItem(QListWidgetItem(QIcon('resource/notes.png')," 本地音乐"))
        self.nativeList.addItem(QListWidgetItem(QIcon('resource/download_icon.png'), " 我的下载"))
        self.nativeList.addItem(QListWidgetItem(QIcon('resource/recommend_icon.png'), " 专属推荐"))
def setListViews ( self ) : self . navigationList = QListWidget ( ) self . navigationList . setMaximumHeight ( 110 ) self . navigationList . setObjectName ( "navigationList" ) self . navigationList . addItem ( QListWidgetItem ( QIcon ( 'resource/music.png' ) , " 发现音乐")) self . navigationList . addItem ( QListWidgetItem ( QIcon ( 'resource/signal.png' ) , " 私人FM")) self . navigationList . addItem ( QListWidgetItem ( QIcon ( 'resource/movie.png' ) , " MV" ) ) self . navigationList . setCurrentRow ( 0 ) self . nativeList = QListWidget ( ) self . nativeList . setObjectName ( "nativeList" ) self . nativeList . setMaximumHeight ( 100 ) self . nativeList . addItem ( QListWidgetItem ( QIcon ( 'resource/notes.png' ) , " 本地音乐")) self . nativeList . addItem ( QListWidgetItem ( QIcon ( 'resource/download_icon.png' ) , " 我的下载")) self . nativeList . addItem ( QListWidgetItem ( QIcon ( 'resource/recommend_icon.png' ) , " 专属推荐"))