QNetwork

Amit Upadhyay upadhyay at me.iitb.ac.in
Fri May 3 11:48:48 BST 2002


Dear Alex,

Thanks for your reply, I did that and a few other things, and now my
program is compiling okay, but is spitting at runtime, when it encounters
the networking related lines:

QObject::connect: No such signal QUrlOperator::start(QNetworkOperation*op)
QObject::connect:  (sender name:   'unnamed')
QObject::connect:  (receiver name: 'ChangePasswd')

[ the program continues, no segfault etc]

i have called qInitProtocols in the main method.
i know i am missing something small, any help will be highly
appreciated.

Regards,

amit


--
Amit Upadhyay
Senior Undergraduate Student
Department of Mechanical Engg.
IIT-Bombay

If you sneeze too hard, you can fracture a rib. If you try to suppress a
sneeze, you can rupture a blood vessel in your head or neck and die. If
you keep your eyes open by force, they will pop out.


On Wed, 1 May 2002, Izyurov wrote:

~ Dear Amit,
~ 
~ it looks like that '+' is missing between '"&newpasswd="' and
~ 'this->newPasswd->text());' in the 4th lione of your code. This may be the
~ reason of <parse error before `this'> error.
~ 
~ Good luck,
~ Alex
~ -----Èñõîäíîå ñîîáùåíèå-----
~ Îò: Amit Upadhyay <upadhyay at me.iitb.ac.in>
~ Êîìó: kdevelop at kdevelop.org <kdevelop at kdevelop.org>
~ Äàòà: 29 àïðåëÿ 2002 ã. 20:40
~ Òåìà: QNetwork
~ 
~ 
~ >hi,
~ >
~ >i am new to qt programming, am trying to access a webpage using
~ >qurloperator....
~ >
~ >    QUrlOperator *urlop
~ >("http://192.168.6.67/~upadhyay/railways/changepass.php?login=" +
~ >this->login->text() +
~ >"&oldpasswd="+this->oldPasswd->text()+"&newpasswd="this->newPasswd->text())
~ ;
~ >    urlop->get();
~ >
~ >    connect ( urlop, SIGNAL(finished(QNetworkOperation *op)), this,
~ >newSlotT (QNetworkOperation *op));
~ >
~ >
~ >
~ >have added the slots using edit slot tool...
~ >but am getting,
~ >
~ >Changepasswd.ui.h: In method `void
~ >ChangePasswd::chPasswdSlot ()':
~ >changepasswd.ui.h:34: parse error before `this'
~ >changepasswd.ui.h:35: request for member `get' in `urlop', which is of
~ >non-aggregate type `QUrlOperator *() (...)'
~ >changepasswd.ui.h:37: parse error before `*'
~ >gmake[2]: Leaving directory `/home/upadhyay/work/railways/railways'
~ >gmake[2]: *** [changepasswd.o] Error 1
~ >
~ >
~ >pl help...
~ >regards,
~ >
~ >
~ >--
~ >Amit Upadhyay
~ >Senior Undergraduate Student
~ >Department of Mechanical Engg.
~ >IIT-Bombay
~ >
~ >If you sneeze too hard, you can fracture a rib. If you try to suppress a
~ >sneeze, you can rupture a blood vessel in your head or neck and die. If
~ >you keep your eyes open by force, they will pop out.
~ >
~ >
~ >
~ >
~ >
~ >-
~ >to unsubscribe from this list send an email to
~ kdevelop-request at kdevelop.org with the following body:
~ >unsubscribe »your-email-address«
~ >
~ 
~ 
~ -
~ to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
~ unsubscribe »your-email-address«
~ 
~ 



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list