Questions tagged [qscrollbar]

25 questions
0
votes
0 answers

how to embed images in PyQt5 QScrollBar elements?

I want to insert a Qscrollbar in my GUI developed in PyQt5. Customizing works fine, but I am not completely happy with the outcome. For instance, the following code (largely inspired from the example developed at Qt Style Sheets reference) produces…
Romain Legrand
  • 107
  • 1
  • 7
0
votes
1 answer

how to detect scroll bar move down in QPlainTextEdit

I am writing a slot method for the signal of scrolling down a scrollbar in QPlainTextEdit. I only found this signalQPlainTextEdit.verticalScrollBar().valueChanged. I tested this signal and it returned the position number when scrolls to a new…
Lisen
  • 168
  • 1
  • 2
  • 11
0
votes
2 answers

How can I resize a QSCrollBar to change it's width in runtime?

I'm currently trying to reproduce the Window 10 Start Menu scroll bar in Qt (python) but I can't figure how to resize my custom QScrollBar to change it's width in runtime. I tried to resize it using the QScrollBar.resize method (in the enterEvent…
Sneyek
  • 33
  • 6
0
votes
1 answer

QScrollBar button size

I'm creating a GUI in QtDesigner and did some styling on the window itself made everything have font size 30pt and QScrollBars width and height (vertical and horizontal respectively) 90px. For simplicity i'll continue with vertical scrollbars, but…
YaniMan
  • 293
  • 2
  • 13
0
votes
1 answer

Qt QScrollBar change background Color

I was working on Qt Designer and I wanted to edit the background color (if possible a gradient) of QScrollBar but I don't know how to do it properly. When I add any background color the whole widget changes color uniformly and becomes solid. I was…
Rock E Rolla
  • 29
  • 1
  • 6
0
votes
1 answer

Matplotlib integrated in a QScrollArea isn't refresh curves properly on mac OS

I have an issue with a matplotlib figure that I've embedded in a pyqt5 QScrollArea. My issue is when I'm scrolling down, it is like only the top of the matplotlib has been updated. For instance, in the image below, the curves below the curve number…
ymmx
  • 4,769
  • 5
  • 32
  • 64
0
votes
2 answers

how to prevent the arrow of a Qscrollbar from calling twice the same function?

I've made a pyqt window to display signal in a matplotlib figure with a QScrollBar to see different part of the signal. My issue is when I plot 100 signal, the arrow of the QScrollBar calls twice the function that is called on a valueChanged…
ymmx
  • 4,769
  • 5
  • 32
  • 64
0
votes
1 answer

QTableView show scroll

I am working on Qt application. There I have QTableView which takes its data from QAbstractTableModel. I am using QList to represent each row in the table. My question is, I would like to start showing scroll instead of keep growing table view size…
RuLoViC
  • 825
  • 7
  • 23
-1
votes
0 answers

How to change the value of the QPushButton in a QScrollbar in QT C++?

Does someone know how can I change the value when we click on the QPushButton on a scrollbar ? image of my QtableWidget It goes 1 by 1 and I would to upgrade to 5 by 5 for exemple. I already tried function like setPageStep or setSingleStep but it…
Zic
  • 1
  • 2
-1
votes
1 answer

Auto-scroller in QScrollArea?

I have created an AutoScroller inside my Gallery but there seems to be a bug that keeps accelerating the speed of scrolling which makes the speed spinbox so unaccurate. My Idea of autoscrolling is using the QTimer from PyQt5.QtCore import * from…
Aoof
  • 322
  • 2
  • 10
1
2