Qt Creator no member named stackedWidget

痞子三分冷 提交于 2019-12-02 11:21:51

I had a very similar issue. One of the UI actions was defined as the others and used. I had a ui has no member named xyz compilation error for this one only, without possible explanation.

I could solve it by unchecking/checking the Shadow build option in the project compilation options!

Hope it saves someone the 30 minutes I just lost :)

Creating a new project fixed it... I don't know why, I'm still looking for an explanation.

I started a new project, created the stackedWidget, and tested the code for the page-switching... it just simply works... and I still do not know WHY the other one fail to build...

Checked again and again names and everything.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!