yogesh upreti wrote on Wednesday, June 09, 2010 5:19 PM:
> Hi All,
> It took me 3 days to solve something which wasn't even an error, and
> I am so happy that even if someone says, "I am a bullshit
No one said you are what you just described! I said you don't seem to be aware
that changing properties on an instance has no effect on a successive static
method call (which by nature can't access the members of a class instance). One
can be an excellent programmer, but still be ignorant of (some) basic
properties of a given language/concept. But in any case, that does not make a
[words not repeated here] of anyone! We are all here to learn, now aren't we.
> 1. I used and instance of QFileDialog. I know its a gray area to work
> with but the example in documentation of Qt shows it in this way.
No, it's not a "gray" area, and personally I don't discourage you to use an
instance of QFileDialog. Depending on the context it might be more useful (more
flexible). There is *nothing* wrong with that! Just don't call a *static*
method and expect it to behave according to the properties you have set on the
*instance*, that's all.
> 2. I used "\\" for Directory name in string variable.
Well, whatever you prefer. I still strongly suggest you use '/' in hard-coded
paths because Qt understands that on *every* platform (to be honest it might
even parse '\\' on a Unix platform correctly, but that is probably an
"undocumented feature" ;)
Also take a note of the static method
which is very useful when it comes to *displaying* paths to the user.
> 3. QT ROCKS !!!!
Well, no objections to that ;)
> I will be present here with another question because no happiness
> stays for long. :)
You're very welcome to do so! And with Qt happiness /does/ stay for long ;)
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
Qt-interest mailing list