[Qt-interest] declaring QString globally
jjDaNiMoTh
jjdanimoth at gmail.com
Mon Nov 2 23:55:33 CET 2009
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
More information about the Qt-interest-old
mailing list