Results 1 to 2 of 2

Thread: Widget removal after log in...

  1. #1
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Widget removal after log in...

    Hello -

    While I'm amazed at home much I've learned about Qt in the past month, I'm more amazed at how much more I need to learn...Learning to be humble and ask for advice too

    If someone could point me to an example, I'd appreciate it, or recommend a better design, I'd appreciate that too...He's my issue...

    I have a Qframe defined with group box and I'm prompting a user to enter username and password for DB verification...Hidden underneath this frame is 2 more widgets in the vein of the Config Dialog example...I have a slot connected to my "Login" PB on the login frame that is behaving as I need it to, but what I want to have happen is after a user has been properly verified, I need to have this login frame disappear and control sent to a specific stacked widget (I have 5 in the stack), but I have no idea 1) how to do it, 2) where to do it...I built this app with Designer so the only actual code to have been written is the slot, if that makes any difference (I suspect it might)

    Any direction would be greatly appreciated!


    Scott

  2. #2
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Widget removal after log in...

    Okay, got the widget closed...Getting closer........



    Added after 7 minutes:


    Huh...Damn that was simple...All I had to do was close the following at the end of my login slot...Feel like a moron...There might be a cleaner way????

    ui->LoginWidget->close ();
    ui->AdminTabWidget->show ();
    ui->OperationsTabWidget->close ();
    ui->RigTabWidget->close ();
    ui->SiteRiserTabWidget->close ();
    ui->SolutionTabWidget->close ();
    Last edited by scott_hollen; 12th February 2011 at 20:06.

Similar Threads

  1. QWebView ScrollBar removal
    By jay in forum Qt Programming
    Replies: 0
    Last Post: 14th May 2010, 12:41
  2. QSqlDatabase coneciton removal!
    By cbarmpar in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2008, 10:46
  3. recursive removal of dirs
    By soul_rebel in forum Qt Programming
    Replies: 1
    Last Post: 13th August 2007, 16:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.