Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. scrollbar
    Log in to post

    • 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
      205
      Views

      No one has replied

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

      7
      0
      Votes
      7
      Posts
      168
      Views

      @suslucoder If your files all have the same structure (separator, data etc.), yes, you should actually.
    • SOLVED scrollbar not reappearing when a tableWidget is stretched then shrinked
      General and Desktop • qtablewidget resize scrollbar • • torea  

      4
      0
      Votes
      4
      Posts
      268
      Views

      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.
    • SOLVED ScrollView & QQuickPaintedItem
      QML and Qt Quick • qml c++ scrollview scrollbar • • Quawetim  

      8
      0
      Votes
      8
      Posts
      497
      Views

      @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
    • UNSOLVED Positioning drawtext inside a rectangle
      General and Desktop • qgraphicsview scrollbar • • lansing  

      4
      0
      Votes
      4
      Posts
      581
      Views

      @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)
    • UNSOLVED Heavy flickering in QListView when appending items if VerticalScrollBarPolicy == Qt::ScrollBarAlwaysOff
      General and Desktop • qlistview scrollbar flickering • • bepaald  

      9
      0
      Votes
      9
      Posts
      1288
      Views

      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!
    • UNSOLVED Qt Quick Controls 1 ScrollView Scrolling Issue
      QML and Qt Quick • qml quick scrollview scrollbar controls 1.4 • • narayanan.krish  

      1
      0
      Votes
      1
      Posts
      417
      Views

      No one has replied

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

      13
      0
      Votes
      13
      Posts
      3059
      Views

      @mrjj Thakn you.
    • UNSOLVED How to use ScrolLeft and ScrollRight Methods of QML Charts
      QML and Qt Quick • scrollbar qtchart • • pra7  

      1
      0
      Votes
      1
      Posts
      634
      Views

      No one has replied

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

      2
      0
      Votes
      2
      Posts
      954
      Views

      Worth linking this topic to the answer documented on StackOverflow: https://stackoverflow.com/questions/46886443/scrollable-qml-charts
    • UNSOLVED Add space after ScrollBar?
      General and Desktop • scrollbar • • Thomas9059  

      2
      0
      Votes
      2
      Posts
      629
      Views

      try the following: QMargins m = scrollArea->getContentsMargins(); m.setRight( m.right() + 10 ); scrollArea->setContentsMargins( m );
    • UNSOLVED Qt5.6: Clicking on Scroll bars seems to also click widgets behind them
      General and Desktop • scrollbar • • cgripeos  

      2
      0
      Votes
      2
      Posts
      603
      Views

      See https://bugreports.qt.io/browse/QTBUG-49549
    • UNSOLVED Synchronize tableview scrollbars
      QML and Qt Quick • qml tableview scrollbar • • PhTe  

      3
      0
      Votes
      3
      Posts
      1421
      Views

      I found it very helpful
    • SOLVED Scrollbars don't show
      General and Desktop • scrollbar • • gabor53  

      13
      0
      Votes
      13
      Posts
      6112
      Views

      @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
    • UNSOLVED QTableView width and columns width
      General and Desktop • qtableview size scrollbar column width ma • • Mark81  

      3
      1
      Votes
      3
      Posts
      2599
      Views

      @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.
    • QScrollBar - Hiding add-line and sub-line when moved
      General and Desktop • qscrollbar scrollbar scroll • • mat_de_b  

      2
      0
      Votes
      2
      Posts
      4333
      Views

      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; }
    • QScrollArea & Vertical Scroll Bar - How To
      General and Desktop • scrollbar scrollarea scroll vertical • • jelicicm  

      7
      0
      Votes
      7
      Posts
      10161
      Views

      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.