my coding part:
void form1::showResult(QTreeWidgetItem * item, int column)
{
QString str,str1;
str=item->text(0);
if(str.compare("sub1")==0)
{
QUrl myurl;
myurl=QUrl::fromEncoded("http://www.google.com");
textBrowser->setSource(myurl);
}
form1 is my name of form
so plz suggest me best fit coding
as u say QDesktopServices::
as i find openURl() take bool value...
thanks & regards
--------------------
jyoti
?????????????????????????????
AFAIK this method takes a QUrl argument...
Qt Code:
To copy to clipboard, switch view to plain text mode
thank u very much...![]()
but can u plz help me abt this type of another query...
if my file is placed on my desktop n i want the same...
means on selection of "sub11"
a help folder should be opened..which is placed on my desktop...
plz do help me out....as soon as possible
thanks in advance
thanks & regards
--------------------
jyoti
Just change the URL to point to the file you wish to open. QUrl::fromLocalFile() may be handy.
Bookmarks