title: How can i change QStackWidget page index with button in Qt Designer?
body: <p>I am currently working in Qt Designer and i am trying to make button change the index of QStackWidget with click signal.</p>
  
  <p>I entered signal editor mode and connected Button to QStackWidget, This is what i got:</p>
  
  <p><a href="https://i.stack.imgur.com/IjrUc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IjrUc.png" alt=""></a></p>
  
  <p>As you see in the picture, <code>setCurrentIndex(int)</code> is grayed out, If i choose any signal from QPushButton, there is nothing associated with changing page.</p>
  
  <p><strong>Sorted Question:</strong></p>
  
  <p>How can i change the page in QStackedWidget using a button? (In Qt Designer).</p>