Qt parent mechanism

前端 未结 3 865
悲&欢浪女
悲&欢浪女 2021-01-26 10:00

There is one QPushButton in a QWidget, click the button should open another QWidget, as coded below:

project.pro

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 10:18

    This usually happens if

  • classes are linked
  • destructor calls aren't properly being called
  • Makefile needs some changes.

提交回复
热议问题