[Qt-interest] declaring QString globally

Mystical Groovy mysticalgr at gmail.com
Mon Nov 2 21:49:55 CET 2009


hello all,

I have a question

I have 3different classes on my app,
lets say

mainclass.cpp/h, preferencesdialog.cpp/h, checkrepo.cpp/h

mainclass contains the main GUI where theres a slot that calls a Preferences
Dialog from preferencesdialog class, now in the Preferences dialog the user
add a string into a box, the user-input text is save on "repoText" QString,
how can i use "repoText" qstring into checkrepo class?


for example, checkrepo class is activated via mainclass GUI and theres a
messagebox that shows "repoText" to the user. where "repoText" is declared
into preferencesdialog class.

I hope you understand what im asking, oh and btw, sry for my english ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091102/e4a27419/attachment.html 


More information about the Qt-interest-old mailing list