Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QProgressBar.resize() works only for vertical bars, clips horizontal
captain_hindsight last edited by
I'm using PyQt5 to make a widget which has dynamically-placed and resized progressbars on top of an image. The problem is, QProgressBar.resize() works fine for vertical progressbars, and clips horizontal ones. In particular, it doesn't produce a square at all if asked to.
I've been on that issue for hours now, there is no way I'm solving this one on my own it seems. I've got a much bigger code, but I reproduced the problem with the following:
self.pb = QProgressBar(self);
def upd(self): self.pb.resize(50,50)
gui = Test()
This does not produce a square. What is happening?
Here is what it looks like on the main program:
!http://i.stack.imgur.com/Y2rHZ.png(Problem on main program)!