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
2 answers

How to create a button for each element in a list and put it in a scroll-area?

I have a list which gets one element each time user opens a file. I need to create a button with the file's name (element from the list), each time this file is appended to a list, and put this button into a scroll-area. The problem is that I…
Julia Cooper
  • 13
  • 1
  • 3
0
votes
1 answer

How to create a scrollable widget using QHBoxLayout and QScrollArea

I am trying to create a widget with scrollable using the QHBoxLayout and QScrollArea but i am unable to succeed to create a GUI,here is my code can any one please suggest me where i need to change. Any help would be appreciated mainLayout = new…
rohith
  • 35
  • 1
  • 8
0
votes
1 answer

How can I draw a selection rectangle on QScrollArea?

I have created an Image Viewer application that opens and saves an image and load the image on QLabel,then I created a ScrollArea to scroll for large images, in my second step I am trying to draw a selection rectangle to select a specific sub area ,…
Sunny
  • 23
  • 1
  • 2
  • 11
0
votes
1 answer

QScrollArea with a QWidget in a QSplitter

I´m making a project for my class, and I need to put a scrollArea in a widget (I choosed a splitter) and I want to push a button and create more scrollArea inside this widget. This is what I´ve done: I create the button like this: self.AddCanal =…
Pablo Flores
  • 667
  • 1
  • 13
  • 33
0
votes
1 answer

Scrollable view as TabWidget

Here is my problem, I display Buttons and Labels manually with setGeometry() method. MyClass which inherits from QWidget Here is my code : void MyClass::function() { QLabel *imgP; QLabel *name; QPushButton *newConv; QPixmap *profilPic; …
Nicolas Charvoz
  • 1,509
  • 15
  • 41
0
votes
1 answer

QScrollArea - TIFF image is not shown in the label

I am actually trying to develop a Graphical User Interface(GUI) using Qt 5.5 which goal is to load and open Tiff images (16.1 MB). I had successfully loaded and displayed TIFF images using this code: int main(int argc, char *argv[]) { QApplication…
Dave_Dev
  • 303
  • 1
  • 12
0
votes
1 answer

pyqt scrollarea not resized after dragndrop

short version: - take the code, run it, (all you need is two png icons) - resize the window to be a lot larger - dragndrop one of the icon far away (at least 300+ pixels away) - then resize window back to original size - then try to scroll to see…
freeaks
  • 487
  • 2
  • 6
  • 14
0
votes
1 answer

Find size of QScrollArea widget when scrollbar disappears

I have the following Qt widget layout QSplitter QFrame (select area), a QTableView QScrollArea (data area) QWidget (entry and edit form) The user might prefer to see more of the select area, that's why the "data area" is in a scroll area.…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
0
votes
1 answer

pyqt. how to add and delete widgets?

i use python 2.7 + qt4.8 how to dynamically change the number of widgets in the window? I need to remove all the widgets and create new ones in the right quantity. testarovaniya made for a simple script: import sys from PyQt4 import QtCore, QtGui,…
Massimo
  • 836
  • 3
  • 17
  • 38
0
votes
1 answer

How to draw QImage on QScrollArea? Did this, but have some minor problems QPainter::begin: Widget painting can only begin as a result of a paintEvent

Ok, so here's what I want to accomplish: I want to draw QImage so the window would have scroll bars in case of the image turned out to be too big. For now one, I have sth like this: #include "imagewidget.h" #include #include…
yak
  • 3,770
  • 19
  • 60
  • 111
0
votes
1 answer

Qt - QScrollArea - align added widgets to top

I have a 150x450 QScrollArea with a VBoxLayout in it. I have to dynamically (while a video is being played, frame by frame) add an unspecified amount of QLabels, ranging from none to hundreds. When I start adding, QLabels start appearing exactly in…
Petersaber
  • 851
  • 1
  • 12
  • 29
0
votes
0 answers

Unable to understand how the QScrollArea/QVboxLayout stuff works

I am trying to align vertically some custom widgets into a scrolledArea. Some research lead me to make a QVboxLayout, adding a QScrollArea into it. I tried and i didn't manage to do it in a proper way. I found that some people use a two QVboxLayout…
Irminsul
  • 171
  • 9
0
votes
1 answer

Add HMI in QScrollArea, but ScrollArea won't scroll

in my project, I have a QScrollArea in a QTabWidget , in this QTabWidget i had few IHM. I would like to put two IHM per line, and when you arrive at the end of QTabWidget , the scrollbar scroll . This is my class diagram : My code in MainWindow…
0
votes
1 answer

How to know if QLayoutItem is hidden by scroll in QScrollArea?

I have a similar question as asked in How to know if QListWidgetItem is hidden by scroll? and the answer to that question didn't fix my problem. Basically I have a QScrollArea having QGridLayout. This layout has many QToolButtons. Based on some…
Gangadhar
  • 3
  • 2
0
votes
1 answer

Scrolling QTableView in QVBoxLayout in QScrollArea

I had a problem with QTableView widget: I need to horizontal scroll whole widget with headers, but standart scrolling scroll only content, but not headers. Then I tried to add QScrollArea like this (this all in QDockWidget): class matrix : public…
railmisaka
  • 971
  • 6
  • 14