Hey @all,

in my client application i have a connection dialog where i can enter the username, passwort, hostname, port. Now i will have an Advanced Button, and by clicking of them the four fields are shown. When i click once more on the button, the four fields must hide.

if have implement it as follows, (Drawings):
Qt Code:
  1. this->auth_dlg->layout()->setSizeConstraint(QLayout::SetFixedSize);
To copy to clipboard, switch view to plain text mode 
And in the slot for the Advanced Button I have:
Qt Code:
  1. if(this->is_advanced) {
  2. this->is_advanced = false;
  3. }
  4. else if(!this->is_advanced) {
  5. this->is_advanced = true;
  6. }
  7. auth_dlg_lServer->setVisible(this->is_advanced);
  8. auth_dlg_lPort->setVisible(this->is_advanced);
  9. auth_dlg_lUsername->setVisible(this->is_advanced);
  10. auth_dlg_lPassword->setVisible(this->is_advanced);
  11. auth_dlg_leServer->setVisible(this->is_advanced);
  12. auth_dlg_lePort->setVisible(this->is_advanced);
  13. auth_dlg_leUsername->setVisible(this->is_advanced);
  14. auth_dlg_lePassword->setVisible(this->is_advanced);
To copy to clipboard, switch view to plain text mode 

So my problem now is when the fields are shown/hided, it takes a few seconds (1 - 3). How can i do it faster?

Regards
NoRulez