Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to reopen the parent window after child window was set to hide?
Forum Updated to NodeBB v4.3 + New Features

How to reopen the parent window after child window was set to hide?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 254 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammadreza99A
    wrote on last edited by
    #1

    I have a window which launches a second window like this:

    this->hide();
    signupWin = new signupWindow(get_this_peer(), this); /
    signupWin->show();
    

    I want to know how could I reopen (show) the main window that launched signupWin after signupWin was been hidden with this->hide()?

    jsulmJ 1 Reply Last reply
    0
    • M Mohammadreza99A

      I have a window which launches a second window like this:

      this->hide();
      signupWin = new signupWindow(get_this_peer(), this); /
      signupWin->show();
      

      I want to know how could I reopen (show) the main window that launched signupWin after signupWin was been hidden with this->hide()?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mohammadreza99A Emit a signal in child which is connected in parent to a slot and in this slot call show().
      Child emits this signel when parent needs to be shown again.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        In addition to what @jsulm said, if there is parent & child relation ship exist between window, you will not be able to show the child. Keep these window objects without parent & child relationship.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved