PyQt5 QWidget.setGeometry() not working for QLabel
<p>I'm working on a very simple app in PyQt5 for displaying and sorting images. I'm  new to Python and Qt in particular, and I've been having a few problems. I'm trying to display QPixmap images within QLabel objects, and they display properly. However, they're lined up in a row as default and I can't figure out how to move them.</p>

<p>(I know the code is terrible but I'm trying to get it working before I make it clean.)</p>

<p>Here is my code:</p>

<pre><code>class ImageClassifier(QtWidgets.QWidget):

    def __init__(self):
        super().__init__()
        self.init_ui()

    def init_ui(self):

        hbox = QtWidgets.QHBoxLayout(self)

        mainImg = QPixmap("img.png")
        xmplImg0 = QPixmap("img0.png")
        xmplImg1 = QPixmap("img1.png")
        xmplImg2 = QPixmap("img2.png")
        xmplImg3 = QPixmap("img3.png")

        lbl = QtWidgets.QLabel(self)
        lbl0 = QtWidgets.QLabel(self)
        lbl1 = QtWidgets.QLabel(self)
        lbl2 = QtWidgets.QLabel(self)
        lbl3 = QtWidgets.QLabel(self)

        lbl.setPixmap(mainImg)
        lbl0.setPixmap(xmplImg0)
        lbl1.setPixmap(xmplImg1)
        lbl2.setPixmap(xmplImg2)
        lbl3.setPixmap(xmplImg3)

        hbox.addWidget(lbl)
        hbox.addWidget(lbl0)
        hbox.addWidget(lbl1)
        hbox.addWidget(lbl2)
        hbox.addWidget(lbl3)

        lbl0.setGeometry(30, 30, 30, 30)

        self.setLayout(hbox)
        self.move(300, 200)
        self.setWindowTitle('Fruit Classifier')
        self.show()

if __name__ == '__main__':

    app = QtWidgets.QApplication(sys.argv)
    ic = ImageClassifier()
    sys.exit(app.exec_())
</code></pre>

<p>The <code>lbl0.setGeometry()</code> function isn't doing anything at all and I don't have a clue why. Does anyone know of a way to fix this, or a better way to set the position of a QLabel object?</p>