Python Forum
[PyQt] PyQt5 graphics question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] PyQt5 graphics question
#5
(Jan-17-2023, 07:02 PM)Axel_Erfurt Wrote: You can set a background image with stylesheet

self.setStyleSheet('background-image: url("/folder/image.png"); background-repeat: no-repeat; background-position: center;')

Ah. Thanks, I'll try that tomorrow.
Reply


Messages In This Thread
PyQt5 graphics question - by HeinKurz - Jan-17-2023, 01:54 PM
RE: PyQt5 graphics question - by Axel_Erfurt - Jan-17-2023, 04:50 PM
RE: PyQt5 graphics question - by HeinKurz - Jan-17-2023, 05:56 PM
RE: PyQt5 graphics question - by Axel_Erfurt - Jan-17-2023, 07:02 PM
RE: PyQt5 graphics question - by HeinKurz - Jan-17-2023, 07:06 PM
RE: PyQt5 graphics question - by deanhystad - Jan-17-2023, 07:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,900 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [Tkinter] Need some basic help with GUI graphics Jerz 2 3,021 Nov-11-2017, 12:10 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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