SwiftUI: How to hide List scroll bar? [duplicate] - swiftui

This question already has answers here:
Is there a way to hide scroll indicators in a SwiftUI List?
(7 answers)
Closed 1 year ago.
I have a simple List. I would like to hide the vertical scrollbar on the right. Is there a way to hide it?

you can get rid of showing indicator for all Lists, but with an API of the UITableView. because SwiftUI List is using UITableView for iOS behind the scene:
init() {
UITableView.appearance().showsVerticalScrollIndicator = false
}

Related

SwiftUI - List on tvOS - top gradient

I have a List that I'm implementing in tvOS with swift UI and when scrolling down on the list, a gradient appears at the top of the list (presumably to indicate there are items above)
Essentially, what I'm looking for at the top of the List is:
But, I'm seeing this:
How do I remove that top gradient fade and simply have a straight edge?
Use a VStack (or LazyVStack) in a ScrollView. List uses UITableView behind the scenes, which has the fade, but ScrollView does not.

SwiftUI ScrollView scroll to top [duplicate]

This question already has answers here:
How to scroll List programmatically in SwiftUI?
(10 answers)
Closed 2 years ago.
Is it possible to scroll to the top of a ScrollView in SwiftUI from the tap of a button?
From what I've read so far it sounds like it's not, yet if I tap the status bar it works...
No, it's not. Let's anticipate upcoming WWDC to come up with enhanced SwiftUI.

Making a questionnaire with Qt, using QScrollArea

I'm trying to make a questionnaire with Qt, using Qt Designer to design the forms.
I want to display each question and the possible answers on a line, one question under the previous one. The problem is that I've got too many question to fit in my window.
I tried using qtscrollarea but I can't manage to get the scroll bars....
I am using QtDesigner, I put a qtscrollarea, with a vertical layout in it, adding the QWidgets containing question and answers in the vertical layout. I tried to force the vertical layout to be bigger than the qtscrollarea, tried to change somme Qwidget to horiontal layout, taking off the vertical layout... But still no way to have a scroll bar.
Any advice on a way of doing it through QtDesigner?
Try this:
place a qtscrollarea
place in qtscrollarea widgets containing question and answers
right click on qtscrollarea and select layout, vertical in your case

How to make a Qt widget resizable [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I add resizable widgets in Qt Creator?
I am using QTreeView and QListView and i want to make them to be sizable i.e. when i go the top end of the QTreeview the pointer should be transformed into a vertical arrow which allows me do a up resize by mouse drag and drop, a feature that is seen on many application nowadays.
How can be achieved this? Thank you.
You can put your widgets into a QSplitter.

How can i add resize option in QMainWindow that is frameless window in QT? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Implement Resize option to Qt Frameless widget
I want to add resize option in my QMainWindows that is Frameless window, How can i add this feature to it?
please explain me with code
You can use QSizeGrip