How to make grid of album covers QT python
<p>Currently i am trying to do it with QTableWidget but i cant seem to adjust the width of the table to the parent element, so when resizing is made, the columns need to increase. QtableWidget is placed in QTabWidget in the first tab. For more info, it is a music player like that:
<a href="http://i.stack.imgur.com/gbvns.png" rel="nofollow"><img src="http://i.stack.imgur.com/gbvns.png" alt="enter image description here"></a> </p>

<p>You can see that in the <code>Tab 1</code> grid is going out of parent bounds horizontally. Vertically is not a problem but i will disable the horizontal scroll and i need the count of columns to fit the current size of the tab WITHOUT cell resizing.Cells must have the same size always except if regulated by the slider below the tab view. Tabs are needed to fit album covers so they will be square later on.</p>

<p>Problem kinda solved. I replaced the TableWidget with list widget in <code>IconMode</code> view mode. </p>

python qt pyqt qt-designer