You are not logged in.

Search results

Search results 1-14 of 14.

Tuesday, February 24th 2009, 9:51am

Author: kpmsiva

Configure

how to write a configure file inorder to check whether qt and kernel source code was installed in the linux system???

Saturday, February 21st 2009, 5:42pm

Author: kpmsiva

Ip address

Finally i got it the ipaddress only by using the QProcess. My code was Source code 1 2 3 4 5 6 7 8 QString prog = "/bin/bash";//shell QStringList arguments; arguments << "-c" << "ifconfig eth0 | grep ‘inet ‘ | awk ‘{print $2}’ | sed ’s/addr://’"; QProcess* process = new QProcess(this); process->start(prog , arguments); process->waitForFinished(); QString tmp = process->readAll(); qDebug() << tmp; Above code will return only the ip address of the local mechine [ etho inet address: ]

Saturday, February 21st 2009, 10:21am

Author: kpmsiva

Ip address

thanks for quick reply... I am using QT 4. Let me check out now....

Saturday, February 21st 2009, 10:10am

Author: kpmsiva

Ip address

I posted the sample code in the above post. I cann't use the grep and pipe symbol in QProcess in order to get ip address only as output. I tried your sample and getting error message as error :QNetworkInterface No such file or directory!. I think to include a line in .pro file which line to add to work?. My need is output of ipaddress thats it.

Saturday, February 21st 2009, 9:42am

Author: kpmsiva

Ip address

thanks for your reply. I read the documentation , but still i didnt get. I tried following.... Source code 1 2 3 4 QProcess *proc=new QProcess(); proc->start("ifconfig eth0 | grep ‘inet ‘ | awk ‘{print $2}’ | sed ’s/addr://’"); proc->waitForFinished(-1); QString out=proc->readLine(); if i worked with the shell its worked fine. But by using the QProcess i am not getting??? Help me out

Saturday, February 21st 2009, 5:18am

Author: kpmsiva

Ip address

Hi ! guys, In my project i need to find out the current system ip address. By using ifconfig we can get ip address. But i really need ipaddress by using the qt. I tried with QHostAddress, but leads failed (:. How can i get ip address of local mech using qt???

Tuesday, February 3rd 2009, 1:40am

Author: kpmsiva

Newbie help please with multiple forms

Quoted from "Junior" This is example only; but it may help. It covers what you wanted from original message. THanks for your sample code... This what i searched in net.... Your code is helpfull to me.... Thank you very much...

Tuesday, February 3rd 2009, 1:15am

Author: kpmsiva

Mutilple form objects

Thanks for your reply Messenger. thank you once again...

Monday, February 2nd 2009, 5:47am

Author: kpmsiva

Mutilple form objects

Hello guys! In my project i need to invoke mutiple ui files. I tried QWizard, but it leads to fail. So i used QUiLoader. Consider my example, ( I am using the QT-Designer 4.4 for creating ui ) testform.h Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 class form1: public QWidget { .... .... .... }; class form2: public QWidget { .... .... .... }; testform.cpp Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 form1::form1(QWidget *parent...

Friday, January 30th 2009, 1:46am

Author: kpmsiva

Multiple forms in QT ?

Hi ! i was created two forms using qt designer(4.4) namely form1(form1.ui),form2(form2.ui) . form1 having the next push button, while pressing it i need to go next form (form2). Like wise form2 having the back push button, while pressing it i need to go previous form(form1). In vb, Source code 1 2 3 4 5 6 7 8 9 nextcmd_clicked() form1.hide() form2.show() end sub previouscmd_clicked() form2.hide() form1.show() end sub Like wise i need to achieve in QT. Please help me out.... Any small hint can be...

Monday, January 26th 2009, 1:48pm

Author: kpmsiva

Hotplug and button event in QT 4.0

Hello guys! I need to refresh the my form whenever the usb device inserted or removed.... I have little knowledge about the hotplug. I dont know how to connect the hotplug event to my button event. Simply i can say, i want to invoke the button event when ever hotplug script run.... Can anybody help???

Thursday, January 15th 2009, 4:52pm

Author: kpmsiva

QProcess Error

Thanks guys.... There is misunderstanding version only.... Now my problem all solved once again thanks...

Wednesday, January 14th 2009, 6:43pm

Author: kpmsiva

QProcess Error

I am getting the follwoing error for following program.... i am using qt 4.3 version Source code 1 error: 'class QProcess' has no member named 'isRunning' Source code 1 2 3 4 5 6 7 8 9 10 #include<qprocess.h> int main(int argc,char **argv) { QProcess *proc=new QProcess(); proc->start("calc.exe"); if(proc->isRunning()); } Like wise if i add Source code 1 proc->addArgument("..."); i am getting Source code 1 error: 'class QProcess' has no member named 'addArgument' I am very confused state and i do...