qt-interest@trolltech.com
[Top] [All Lists]

Convert QString to char*

Subject: Convert QString to char*
From: "Harsimrat Thukral"
Date: Thu, 24 Mar 2005 13:55:18 -0500
Hello all

Is there any way to change QString to char*

this is what I'm doing
for( uint i(0); i < WTopology.count(); i++ )

{

QStringList line( QStringList::split( " ", WTopology[i], false ) );

QString ip1 = *line.at( 0 );

ip1 = ip1.stripWhiteSpace( );

ip1.


for(int j=0; j<array; j++)

{

if(strcmp(mystr[j],ip1) == 0)    // Here I comparing the string so which 
takes char*

{

QMessageBox::information(this,"ip1",ip1);

}

}


}

Thank You

Harsimrat

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>