Results 1 to 3 of 3

Thread: Checkboxes: check and uncheck

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Caracas - Venezuela
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Checkboxes: check and uncheck

    Hi!!!

    I need emit a signal when a checkbox is uncheck. I read about stateChanged(int state), but it doesn't work

    I have something like that:

    Qt Code:
    1. QCheckBox *Login;
    2. Login = new QCheckBox;
    3. QLineEdit *lineLogin;
    4. lineLogin = new LineEdit;
    5.  
    6. lineLogin -> hide();
    7.  
    8. connect(Login, SIGNAL(clicked()), this, SLOT(showLineLogin()));
    9.  
    10. void window:: showLineLogin(){ lineLogin -> show}
    To copy to clipboard, switch view to plain text mode 
    I want a signal that hide again the lineLogin when "Login" is unchecked

    How can I do that???

    Thanks!!!
    Last edited by jpn; 6th June 2008 at 10:29. Reason: missing [code] tags

Similar Threads

  1. Check and Uncheck on a Dir Tree?
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2007, 11:55

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
  •  
Qt is a trademark of The Qt Company.