what is the easy way to get the bottom of QStack?
-
what is the easy way to get the bottom of QStack?
-
Hi,
Since QStack is a QVector you can use last
-
i think it's the stack.first() , isn't it?
-
Indeed, since it's a stack it's "reversed logic"
-
so stack.first() == the bottom element/
stack.last() == stack.top()
right? -
Yes, but it's generally quicker to write a little test application to verify such things than wait on answer