Python Forum
PyQt5 adding image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 adding image
#4
(Feb-20-2021, 05:26 PM)Axel_Erfurt Wrote: adjust height and width to your needs

        logoLabel = QLabel(self)
        logoLabel.setFixedHeight(32)
        logoLabel.setFixedWidth(32)
        logoLabel.setScaledContents(True)
        pixmap = QPixmap('logo.png')
        logoLabel.setPixmap(pixmap)


Thanks Axel I appreciate it!
Reply


Messages In This Thread
PyQt5 adding image - by thewolf - Feb-20-2021, 03:53 PM
RE: PyQt5 adding image - by thewolf - Feb-20-2021, 03:57 PM
RE: PyQt5 adding image - by Axel_Erfurt - Feb-20-2021, 05:26 PM
RE: PyQt5 adding image - by thewolf - Feb-21-2021, 08:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  adding backgroung image ebolisa 4 2,791 Jan-08-2021, 11:45 AM
Last Post: JudyLarose
  Adding an image to a tkinter window djwilson0495 2 8,178 Aug-23-2020, 11:07 AM
Last Post: ebolisa
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,874 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  Need help adding a sql List to a combo box PyQt5 jimmyvegas29 1 8,678 Jul-20-2018, 07:28 AM
Last Post: Alfalfa

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020