[Qt-interest] How do we step one level out of given application directory path.

Ian Thomson Ian.Thomson at iongeo.com
Thu Feb 12 12:30:16 CET 2009


Hi,

Can you append "../" to your directory?
That would give you "C:/Application/GUI/Common/../" which would usually 
be equivalent.

Cheers,
Ian.

Hemalatha Venkataswamy wrote:
> 
> Hi,
> 
> In my Qt GUI application, for one of the requirement, I m using 
> QApplication::applicationDirPath(). This function for example returns me 
> "C:/Application/GUI/Common/", i need to step one directory level out 
> like "C:/Application/GUI/". I m unable to achieve this.
> 
> Can anybody suggest me some solution.
> 
> Thanks in advance.
> 
> With Regards
> =================================
> Hemalatha,
> PES (Communications) , BANGALORE
> phone:  91 80 6624 2089
> =================================
> *
> Larsen & Toubro Infotech Ltd.*_
> __www.Lntinfotech.com_ <http://www.lntinfotech.com/>
> 
> This Document is classified as:
> 
> L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech 
> Internal Use Only   L&T Infotech General Business  
> 
> This Email may contain confidential or privileged information for the 
> intended recipient (s) If you are not the intended recipient, please do 
> not use or disseminate the information, notify the sender and delete it 
> from your system.
> ______________________________________________________________________
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed.  If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.






More information about the Qt-interest-old mailing list