[Qt-interest] Problems with `password dialog'

Aaron Lewis aaron.lewis1989 at gmail.com
Wed Mar 10 10:01:49 CET 2010


Hi,
    I have a main window, and i want to dynamically create a Dialog to
get informations ( kinds of user-name , password e.g)

    I have two classes , qsqlcc and qgetpass.

    I tried some sample code:
   
    I) In class getpass , i tried to take advantage of construct
function , tried to pass pointers to it:
    qgetpass::qgetpass (QWidget *parent , QString *username , QString
*passwd , QString *host)
    ..

    II) In MainWindow , in some function

    qgetpass *passDialog = new qgetpass(&_username,&_passwd,&_host);

    I then will got empty strings . I thought i should use connections ,
but i've got no ideas..

    Any ideas will appreciate .

-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode




More information about the Qt-interest-old mailing list