D
D
DenisPy132018-02-18 01:22:32
Python
DenisPy13, 2018-02-18 01:22:32

How to use the slider to change the size of the image in the window?

How to use the slider to change the size of the image in the window?
You need to use the slider to change the size of the picture, make it larger or smaller.
And what would be the minimum size of the change and the maximum for example ( min 50px change to max 100px ).
In PyQt and Python.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2018-02-18
@mmmaaak

You set the range of values ​​for the slider in the interface editor, in the code you subscribe to the event of changing the position of the slider, in the handler you change the size of the picture and redraw it, or how they are displayed there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question