title: Several windows as a single taskbar icon
body: <p>Currently I am writing a C++ Qt GUI standard (i.e. via Qt Creator) application.</p>
  
  <p>Basically, what I am trying to do is an application, which operates the following singleton classes:</p>
  
  <ol>
  <li>a MainWindow class, which is responsible for the core logic;<br></li>
  <li>a ServerWindow class, which is responsible for the server connection;<br></li>
  <li>a User class, which is returned (in form of a pointer) by the ServerWindow class after successfull authentication;<br></li>
  <li>a Data class, which is initialized with the data, recieved via ServerWindow upon user authentication.<br>
  <br>
  The algorithm is:<br></li>
  <li>Construct a MainWindow and create a Data class; it also holds a pointer (nullptr at this step) at the current user.<br></li>
  <li>When the constructor has finished, the ServerWindow (derived from QDialog) is executed (via <a href="https://stackoverflow.com/questions/14356121/how-to-call-function-after-window-is-shown">Qt delayed connection</a>). At this step the MainWindow is frozen and set invisible, untill the ServerWindow emits one of the signals (logged, fail). The ServerWindow has a modal mode flag set.<br></li>
  <li>When the ServerWindow is done, a pointer to the current user is passed to the MainWindow. The ServerWindow also knows about the Data class and initializes it.<br></li>
  </ol>
  
  <p>The main problem is that at step 2 the application icon in the taskbar (I use Windows OS) is not shown. When the MainWindow is "offline" (i.e., not shown, invisible via setVisibility(false)), there is no icon. It is highly annoying, especially if there is a bunch of other applications open. So that, my question is: what can I do to make ServerWindow create an application icon in the taskbar without MainWindow being shown?<br>
  <br>
  The additional, by-the-way question is about possible application architecture remastering. I cannot find any books in my small library about similar applications designing. Frankly, I cannot even figure out, which words I should pass to the Google search line. Any advice?<br>
  <br>
  Preliminary, thanks for any answers!</p>