title: Qt: Restoring the geometry of QTextEdit fails
body: <p>I'm attempting to restore the geometry (mostly the sizes) of a TabWidget, a ListView and a TextEdit. All of this was designed with the QtDesginer so I didn't write anycode. The TabWidget and the ListView where "grouped together with in a horizontal layout with a splitter" and the resulting group was "grouped together in a vertical layout with a splitter" and the textedit at the bottom. The group was set in a grid layout on the main window.</p>
  
  <p>I load the settings in the window constructor like this:</p>
  
  <pre><code>   restoreGeometry(settings.value("main_interface").toByteArray());
     restoreState(settings.value("main_window_state").toByteArray());
     ui-&gt;twConversations-&gt;setGeometry(settings.value("conversations").toRect());
     ui-&gt;lvContacts-&gt;setGeometry(settings.value("contacts").toRect());
     ui-&gt;teUserInput-&gt;setGeometry(settings.value("lineinput").toRect());
     ui-&gt;spEditRest-&gt;setGeometry(settings.value("vertical_space").toRect());
     userID = settings.value("user_id").toString();
     doesUserExist = !userID.isEmpty();
  </code></pre>
  
  <p>You can see that I've even tried to save the splitter geometry to see if it made any difference. It didn't. </p>
  
  <p>The save settings function is called when the window closes with this code:</p>
  
  <pre><code>QSettings settings(SETTINGS_FILE,QSettings::IniFormat);
  settings.setValue("main_interface",this-&gt;saveGeometry());
  settings.setValue("main_window_state",this-&gt;saveState());
  settings.setValue("conversations",ui-&gt;twConversations-&gt;geometry());
  settings.setValue("contacts",ui-&gt;lvContacts-&gt;geometry());
  settings.setValue("lineinput",ui-&gt;teUserInput-&gt;geometry());
  settings.setValue("vertical_space",ui-&gt;spEditRest-&gt;geometry());
  settings.setValue("user_id",userID);
  </code></pre>
  
  <p>When the INI does not exist it is created with these values:</p>
  
  <pre><code>[General]
  main_interface=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\a\x80\0\0\0\0\0\0\v-\0\0\x2\xf1\0\0\a\x83\0\0\0\x17\0\0\v*\0\0\x2\xed\0\0\0\x2\0\0)
  main_window_state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\xa8\0\0\x2\xaa\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
  conversations=@Rect(0 0 206 329)
  contacts=@Rect(209 0 705 329)
  lineinput=@Rect(0 332 914 328)
  vertical_space=@Rect(11 11 914 660)
  user_id=
  </code></pre>
  
  <p>Then I shrink the textedit (identified as lineinput in the ini) and close. The resulting INI value is this:</p>
  
  <pre><code>[General]
  main_interface=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\a\x80\0\0\0\0\0\0\v-\0\0\x2\xf1\0\0\a\x83\0\0\0\x17\0\0\v*\0\0\x2\xed\0\0\0\x2\0\0)
  main_window_state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\xa8\0\0\x2\xaa\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
  conversations=@Rect(0 0 206 581)
  contacts=@Rect(209 0 705 581)
  lineinput=@Rect(0 584 914 76)
  vertical_space=@Rect(11 11 914 660)
  user_id=
  </code></pre>
  
  <p>I can see that the height of the lineinput changed from 328 to 76 however  when I open the app again the size is not reduced. Saving it again will again save 328.</p>
  
  <p>Can anyone tell me what is going on?</p>