Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. scrollbar

    Log in to post
    • All categories
    • mzimmers

      Unsolved ScrollBar policy not working as expected
      QML and Qt Quick • scrollbar • • mzimmers

      5
      0
      Votes
      5
      Posts
      68
      Views

      JoeCFD

      @mzimmers True that the second one does not work. Sorry! I tested it and saw it worked. I must have done something differently. I will check it out later.

    • Tobias

      Solved Styling QtQuick2 ScrollView results in visible artifacts
      QML and Qt Quick • scrollview scrollbar styling scroll view qtquick2 • • Tobias

      2
      0
      Votes
      2
      Posts
      87
      Views

      Tobias

      I got an answer that fixes the problem on Stackoverflow https://stackoverflow.com/a/75522782/5134351

    • H

      Unsolved Edit scrollbar colour through stylesheet in main window?
      General and Desktop • qscrollbar mainwindow stylesheet scroll scrollbar • • Hologram

      6
      0
      Votes
      6
      Posts
      138
      Views

      SGaist

      Don't you have access to the source code ?
      And if not, ask the authors ?

    • W

      Unsolved QML - Scroll bar size and position fail to update when it is at the bottom and window height is resized
      QML and Qt Quick • qml scrollbar • • wcomp

      1
      0
      Votes
      1
      Posts
      303
      Views

      No one has replied

    • D

      Unsolved Scroll chart, when new data come
      General and Desktop • qt5 chart scrollbar • • deleted286

      7
      0
      Votes
      7
      Posts
      271
      Views

      Pl45m4

      @suslucoder

      If your files all have the same structure (separator, data etc.), yes, you should actually.

    • T

      Solved scrollbar not reappearing when a tableWidget is stretched then shrinked
      General and Desktop • qtablewidget scrollbar resize • • torea

      4
      0
      Votes
      4
      Posts
      485
      Views

      T

      Calling the base class implementation did the trick. Thank you again!
      I didn't try the resizeToContents as some cells shouldn't be sized to their content in some context.

    • Q

      Solved ScrollView & QQuickPaintedItem
      QML and Qt Quick • qml scrollview scrollbar c++ • • Quawetim

      8
      0
      Votes
      8
      Posts
      814
      Views

      KroMignon

      @Quawetim I don't know which is better. For my comprehension, it is easier to use implicitHeight/implicitWidth of the item to be scrolled.

      For example, when the item is a ListView, implicitHeight is automatically updated when an element from the ListView is changed/added/removed.
      Your View item only have to set implicitHeight/implicitWidth and dynamically the ListView will adapt the scollbars limits/positions

    • L

      Unsolved Positioning drawtext inside a rectangle
      General and Desktop • qgraphicsview scrollbar • • lansing

      4
      0
      Votes
      4
      Posts
      875
      Views

      A

      @lansing
      I'm not sure what you are trying to achieve.
      Normally, I would calculate the correct bounding rect (and ideally cache the result as long as nothing changes, so calls to boundingRect() stay fast)

    • B

      Unsolved Heavy flickering in QListView when appending items if VerticalScrollBarPolicy == Qt::ScrollBarAlwaysOff
      General and Desktop • flickering qlistview scrollbar • • bepaald

      9
      0
      Votes
      9
      Posts
      1618
      Views

      B

      Thanks for the replies and apologies for the late response. I'm having a very busy period. I have in the meantime submitted a bug report: https://bugreports.qt.io/browse/QTBUG-73177

      @SGaist said in Heavy flickering in QListView when appending items if VerticalScrollBarPolicy == Qt::ScrollBarAlwaysOff:

      Qt 5.12.1 just got released, can you check again if you still have the same problem ?

      Yes, I did check 5.12.1 and nothing has changed. I've updated my bug report accordingly.

      @VRonin said in Heavy flickering in QListView when appending items if VerticalScrollBarPolicy == Qt::ScrollBarAlwaysOff:

      d_cancel is a race condition, change its type to std::atomic_bool
      What I suspect is happening is that this intersect check is not working correctly when you disable the scrollbars

      Thanks, I just wrote that little example code quickly and indeed, d_cancel could lead to problems (though not very likely). rest assured, in the actual project where I'm seeing this problem, the equivalent bool is already a std::atomic_bool.

      Thanks for the hint as to where the problem is, I will try to investigate.

      I have tried to install the debug packages of qt on my machine, but the easiest way to do so, they overwrite the normal packages and make my desktop unusable (since I'm running KDE which uses qt). So I need to figure out how to install a second, separate version or try to debug on a different (virtual) machine. Either way, just getting it set up will take more time than i have had lately. To be continued.

      Thanks again!

    • N

      Unsolved Qt Quick Controls 1 ScrollView Scrolling Issue
      QML and Qt Quick • qml controls 1.4 scrollview scrollbar quick • • narayanan.krish

      1
      0
      Votes
      1
      Posts
      469
      Views

      No one has replied

    • Y

      Unsolved Issue with setHorizontalScrollBarPolicy in MDI area.
      General and Desktop • mdiarea qt5.6 c++ qt scrollarea scrollbar • • Yash001

      13
      0
      Votes
      13
      Posts
      3279
      Views

      Y

      @mrjj Thakn you.

    • P

      Unsolved How to use ScrolLeft and ScrollRight Methods of QML Charts
      QML and Qt Quick • qtchart scrollbar • • pra7

      1
      0
      Votes
      1
      Posts
      703
      Views

      No one has replied

    • P

      Unsolved Scrollable QML Charts
      QML and Qt Quick • qtcharts scrollbar • • pra7

      2
      0
      Votes
      2
      Posts
      1244
      Views

      K

      Worth linking this topic to the answer documented on StackOverflow: https://stackoverflow.com/questions/46886443/scrollable-qml-charts

    • T

      Unsolved Add space after ScrollBar?
      General and Desktop • scrollbar • • Thomas9059

      2
      0
      Votes
      2
      Posts
      699
      Views

      raven-worx

      try the following:

      QMargins m = scrollArea->getContentsMargins(); m.setRight( m.right() + 10 ); scrollArea->setContentsMargins( m );
    • cgripeos

      Unsolved Qt5.6: Clicking on Scroll bars seems to also click widgets behind them
      General and Desktop • scrollbar • • cgripeos

      2
      0
      Votes
      2
      Posts
      625
      Views

      cgripeos

      See https://bugreports.qt.io/browse/QTBUG-49549

    • P

      Unsolved Synchronize tableview scrollbars
      QML and Qt Quick • qml tableview scrollbar • • PhTe

      3
      0
      Votes
      3
      Posts
      1488
      Views

      D

      I found it very helpful

    • G

      Solved Scrollbars don't show
      General and Desktop • scrollbar • • gabor53

      13
      0
      Votes
      13
      Posts
      6843
      Views

      Q

      @N-Sumi @gabor53 Hey, Sorry I get that this is quite old post. But asking incase if you have a solution. I understood how to add this in code and get it. But is there a way to set this property in QtDesigner? So that every time I modify my design, I need not type explicitly in the generated code. I cannot find this property. Could you please let me know if we can do this in Qt designer

    • M

      Unsolved QTableView width and columns width
      General and Desktop • qtableview column width ma size scrollbar • • Mark81

      3
      1
      Votes
      3
      Posts
      2704
      Views

      M

      @SGaist
      The QSizePolicy is set to Expanding, because I want the table should take all the space by default. Anyway I tried to set it to Minimum but nothing changes. It seems something force the minimum size of the table, but I printed out the actual minimumSize value and is set to 0, even after adding the contents.

    • M

      QScrollBar - Hiding add-line and sub-line when moved
      General and Desktop • qscrollbar scroll scrollbar • • mat_de_b

      2
      0
      Votes
      2
      Posts
      4795
      Views

      mrjj

      Hi and welcome
      I think you might need to set margin for inner area
      The following works for me with 32x32 images for the ends

      /*inner area*/ QScrollBar::vertical { border: 1px solid #a5a5a5; background: none; width: 65px; margin: 42px 0 42px 0; /* match top/lower area*/ } /*the knob*/ QScrollBar::handle:vertical { background: #d5d5d5;; border: 2px solid #000000; min-height: 60px; border-radius: 12px; } /*lower arrow area*/ QScrollBar::add-line:vertical { border: 0px solid grey; background: NONE; height: 40px; subcontrol-position: bottom; subcontrol-origin: margin; } /*top arrow area*/ QScrollBar::sub-line:vertical { border: 0px solid grey; background: none; height: 40px; subcontrol-position: top; subcontrol-origin: margin; } /*arrows*/ QScrollBar::up-arrow:vertical { image: url(:/GFX/sbar/up_arrow_scrollbar.png); } /*pressed*/ QScrollBar::up-arrow:vertical::pressed { image: url(:/GFX/sbar/up_arrow_scrollbar_pressed.png); } QScrollBar::down-arrow:vertical::pressed { image: url(:/GFX/sbar/down_arrow_scrollbar_pressed.png); } QScrollBar::down-arrow:vertical { /* border: 2px solid grey; width: 3px; height: 23px; */ image: url(:/GFX/sbar/down_arrow_scrollbar.png); } QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; }
    • J

      QScrollArea & Vertical Scroll Bar - How To
      General and Desktop • vertical scrollarea scroll scrollbar • • jelicicm

      7
      0
      Votes
      7
      Posts
      11030
      Views

      SGaist

      Hi,

      The focus changed when you clicked the button. What you can do is to keep track on the currently focused QLineEdit in a member variable so you can use it at deletion time. Or you could add a remove button besides your QLineEdit and use that to remove them.