[Qt-interest] declaring QString globally

Mystical Groovy mysticalgr at gmail.com
Tue Nov 3 00:13:12 CET 2009


Thank you very much for your replies.
jjDaNiMoTh the thing is that i want to check the string before storing it
into a setting value.

Ill try the approce that Hong Jiang proposed.

Thank you :)

2009/11/3 jjDaNiMoTh <jjdanimoth at gmail.com>

> 2009/11/2 Hong Jiang <kmldqj at gmail.com>:
> > You could create a repoTextChanged(const QString&) signal and connect
> > that to any object that needs to use the string. (I would change the
> > design. But it's a simple way to do what you want without much change
> > to your existing code.)
>
> Or, if the preferences needs to be stored and re-used every time that
> your user start the app, use QSettings ( prefDialog write values,
> other read).
>
> HTH
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091103/f09c0fec/attachment.html 


More information about the Qt-interest-old mailing list