如果在多页面跳转后,同一个页面出现多次,可以通过以下方式解决:

  1. 在每次跳转到同一个页面之前,先判断该页面是否已经存在。如果存在,则不再创建新的页面,直接跳转到已存在的页面。

  2. 在每次跳转到同一个页面之前,先将之前存在的页面关闭,然后再创建新的页面进行跳转。

具体的实现方式可以根据你的代码结构和需求来选择。

#include usersh#include ui_usersh#include QCloseEvent#include QMessageBoxusersusersQWidget parent QWidgetparent uinew Uiusers ui-setupUithis; displayLogin;users~users delete ui;设置登录界面v