Questions tagged [qscrollarea]

QScrollArea is a Qt class that provides scrolling functionality to other widgets.

QScrollArea displays the contents of another widget within some frame. If that widget is bigger than the frame and does not fit, scrollbars will be provided so the entire widget can be viewed.

QScrollArea allows changing the scrollbar policies (which determine if the scrollbars are always on, always off, or activated when needed), and to programmatically get and set the scrollbar values.

It also allows customizing the visual appearance of the scrollbars.

Official documentation can be found here.

298 questions
0
votes
1 answer

How to hide a qscrollbar context menu in QT

How can i hide the scrollbar context menu that appears when you right-click on it?
Darkgaze
  • 2,280
  • 6
  • 36
  • 59
0
votes
2 answers

How do I place the QScrollBar on the content of the QScrollArea?

I want to make a scrollbar that fades in and out depending on usage. I subclassed QScrollBar and got the look that I want. The problem is that the scrollbar is placed next to the content. How do I instead make it go on top of the content?
chacham15
  • 13,719
  • 26
  • 104
  • 207
0
votes
1 answer

QScrollArea save as image (jpg,tiff,png)

I have several "curves" (something like this) these curves are contained in a QVBoxLayout and this in turn is contained in a QScrollArea. my question is, is there any way to keep these "curves" as an image file? ie jpg, png, tiff, etc.. thanks
jackajack
  • 153
  • 1
  • 1
  • 11
0
votes
1 answer

QScrollArea in QGroupBox

I'm trying to implement the following architecture: QGroupBox -->setLayout QVBoxLayout -->addWidget QScrollArea -->setWidget QWidget -->setLayout QVBoxLayout -->addWidget My widgets(Mesures) The result I'm looking for is having a…
Leo
  • 1,129
  • 4
  • 23
  • 38
0
votes
2 answers

How to find out whether child widget of QScrollArea is visible?

I am displaying multiple QLabels on a QFrame, placed into a QScrollArea. I am able to tell QScrollArea to make any of the QLabels visible with QScrollArea.ensureWidgetVisible(QLabel), but I cannot seem to find a method to find out whether the child…
neydroydrec
  • 6,973
  • 9
  • 57
  • 89
-1
votes
1 answer

How to scroll a QScrollArea horizontally only?

I create a QScrollArea instance, by default, I can scroll it by wheel of mouse vertically. But I want scroll it horizontally with mouse WITHOUT pressing ALT key. How to do that? Codes in c++ may be very helpful. Thanks.
taptiptop
  • 13
  • 6
-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
votes
1 answer

PyQt QScrollArea no scrollarea

I have class View(QtWidgets.QLabel): def __init__(self): super(View,self).__init__() self.cropLabel = QtWidgets.QLabel(self) self.label = QtWidgets.QLabel(self) self.ogpixmap = QtGui.QPixmap() fileName =…
Sylvain Page
  • 581
  • 1
  • 7
  • 21
-1
votes
1 answer

changing the size of a new widgets

i'm working on GUI using pyQT creator and python.it is a chat application that uses a painted rectangle to hold the chat's text using Qpainter. all painted widgets are show in scrollArea ( inside verticalLayout). so far the GUI is working as you can…
Eman S.
  • 145
  • 1
  • 8
-1
votes
2 answers

Using QScrollArea with QQuickWidget

I have a QQuickWidget. I'd like to make it autosizable according to its QML content and to provide both horizontal and vertical scrollbars in case when its content cannot fit the window. I put the QQuickWidget inside a QScrollArea and added layout…
Vercetti
  • 437
  • 1
  • 6
  • 17
-2
votes
2 answers

Custom QScrollArea

I have developed some functionality that generates the following rows of output: 6 QLabels with pixmaps assigned to them, as well as 6 additional QLabels with assigned text that are positioned over the pixmap QLabels. Below the above set of labels,…
embersofadyingfire
  • 523
  • 1
  • 4
  • 16
-2
votes
2 answers

QScrollArea: horizontal scrollbar caused by vertical scrollbar

I have a simple dialog with a QScrollArea inside it: // Vertical container for the dialog QVBoxLayout *cont = new QVBoxLayout; this->setLayout(cont); //"this" is my derived QDialog class // ScrollArea for iconFrame QScrollArea *scroll = new…
bur
  • 604
  • 5
  • 20
-3
votes
0 answers

C++ Qt QScrollArea

Tell me please how to make an expandable QGroupBox depending on the information and so that it does not appear at the very beginning of the QScrollArea, but only when I start to reduce the width. how to find the width of qGroupBox given what is…
1 2 3
19
20