How to enter Images in a listWidget inside tabWidget
Solved
General and Desktop
-
problem solved. thanks @SGaist @jsulm @anil_arise @JonB I just want to know that every beginner face these problems. or I'm the special one.
-
item1 = QtWidgets.QListWidgetItem(QIcon("path_to_pic"), "Name_of_pic") self.listWidget_2.addItem(item1) item2 = QtWidgets.QListWidgetItem(QIcon("path_to_pic"), "Name_of_pic! self.listWidget_2.addItem(item2)
-
@Osama_Billah said in How to enter Images in a listWidget inside tabWidget:
I just want to know that every beginner face these problems. or I'm the special one.
At the beginning we are all beginners :-)
-
Off topic replies forked to here:
-
Thanks for your response. One more thing how to convert these images horizontally and increase the size. @SGaist @jsulm @anil_arise @JonB
-
this is the code. I used QIcon the one @anil_arise suggest
self.tabWidget.setIconSize(QtCore.QSize(32, 32)) QtWidgets.QListWidgetItem.setLayoutDirection(QtCore.Qt.LeftToRight)