title: QStackWidget - Search by name
body: <p>I've searched a method into <a href="https://doc.qt.io/qt-5/qstackedwidget.html" rel="nofollow noreferrer">QT5 Docs</a> and I couldn't find anything regarding a function that can get me all the elements within the StackWidget.</p>
  <p>I have a StackWidget which contains the pages for my application, but so far the only way I found in order to be able to change that the page is this function <code>setCurrentIndex</code> which needs to take an index of that specific page. Is the anyway a function or something which cand return the name of the elements from that <code>stackWidget</code> or a way in which I can use the name of that object in order to change the page, not the index.</p>