Questions tagged [stackview]
214 questions
0
votes
0 answers
StackView FIll Equally not working properly NSTextFields
I have an NSStackView which holds multiple NSTextFields. I put StackView distribution to
Fill Equally
But when one of the textFields has content higher than actual width. It goes wrong:
The stackView works perfectly when the content size is less…

B. Chandresh
- 125
- 7
0
votes
1 answer
StackView horizontally wrap content
what I need
my result
Why mystackViewHorizontal doesn't wrap content horizontally ?
my code:
airView.snp.makeConstraints { (make) in
make.height.width.equalTo(45)
}
airImg.snp.makeConstraints { (make) in
…

Kerim Khasbulatov
- 692
- 8
- 21
0
votes
2 answers
Gesture detector can't Trigger inside StackView
The Issue is similarly in Flutter Github : https://github.com/flutter/flutter/issues/23454 . I have messy problem with Gesture Detector. the method onTap() doesn't give me print out. It's looks like static, however i have put it in stateful widget…

Nanda Z
- 1,604
- 4
- 15
- 37
0
votes
1 answer
How to replace() an item in Qml StackView that is not on the top of the stack?
According to the Qt docs I should be able to call:
Item replace(target, item, properties, operation)
Replaces one or more items on the stack with the specified item and
operation, and optionally applies a set of properties on the item. The
item can…

Tyler M
- 352
- 4
- 21
0
votes
5 answers
How to add subview to stackview in table view cell?
I am in need to add the label as subview to UIStackView in table view cell.
I have created label as
let nameLabel=UILabel()
nameLabel.text=names[indexPath.row]
Where name is an array which is a type of String
My code is
class ViewController:…

Priya Sri
- 145
- 13
0
votes
2 answers
How to open new page from page which is open from stackview in Qt
I have StackView in main.qml.I pushed menu.qml file from main.qml using stackview. I'm trying to access stackview in menu.qml file to open new item. Is there a way with which we can push component/items with properties using stackview? My…

srs
- 121
- 8
0
votes
0 answers
Label increase the length of stack view from both size
I have a label in a stack view, everything is defined Programmatically, but when the size of this label is increase, the size of the entire stack view increase from left and right side. Could you tell me how the configuration should looks like to…

Lifetime Email
- 53
- 4
0
votes
1 answer
StackView Content alignment
I am working on Stackview and adding two labels , I want to adjust position of labels such that the below label should be a bit right side . E.g in UITableViewCell we have one title and second description goes all the way to right along with…

Saleem Abbas
- 11
- 1
0
votes
1 answer
Swift - How to create dynamic labels in stackview?
I'm trying to create a stackview with dynamic number of lables.
I tried with:
let nValues: String = "A , B, C, D"
if let someArray = nValues.components(separatedBy: ",") {
let label: UILabel = UILabel()
for nValue in…

Mr. Geek
- 21
- 2
0
votes
1 answer
auto create stackView from array count
Please tell me if I chose the right approach or are there other options?
I receive an array of objects from the server.
According to the task I have to place each object of the array in the table cell
How many objects will come I don’t know, I just…

Сева
- 510
- 1
- 4
- 15
0
votes
1 answer
Autolayout conflict when hiding subview of UIStackview
When hiding subviews of UIStackview in tableviewcell, sometimes autolayout conflicts occured.
I tried also addArrangedSubview and removeArrangedSubview instead of hiding and unhiding. But it was same result.
The uistackview has four subviews.
I…

Justin.Shim
- 317
- 2
- 14
0
votes
1 answer
UITableViewCell - hiding unused views or not even adding them?
I have a simple question for which I haven't found anything related online.
What is more practical?
Having a TableViewCell that has more than 10+ subviews (inside of a stackview), but generally only 3-4 is shown, others are hidden.
Or having an…

Kárpáti András
- 1,221
- 1
- 16
- 35
0
votes
2 answers
How to access an instance of UIStackView inside a cell in swift?
I have a stackView(called 'btnStack') which holds four buttons in a cell(class 'PresentationCell') which I am trying to hide with the following code:
func hideBtnStack() {
let cell = collectionView.visibleCells.first as! PresentationCell
…

Zenman C
- 1,653
- 13
- 21
0
votes
2 answers
ScrollView with embedded StackView issue
I have a scrollView with a stackView placed in it. The scrollView is constrained to the rootview. The stack view will show a xib view.
The xib views are all different lengths.
The xib views are labeled simpleVC0 and simpleVC1. The length of the…

kitchen800
- 197
- 1
- 12
- 36
0
votes
2 answers
How can i find the superview/parentviewcontroller of a view inside a stackview
Hopefully this isn't too confusing.
I have a main view controller (MainView) with a stackview at the bottom of the view and inside the stackview I have three views. Inside one the views (lets call it footerView) i'm adding a little tooltipView - and…

vanilla_splsh
- 153
- 1
- 12