[Qt-interest] Problem of the classes
Neeraj Jhawar
navderm at gmail.com
Fri Jan 9 14:42:49 CET 2009
Respected Sir,
I was working with QT and QThread and I have some problem continuing
further.
I have a class guiwindow (...)
{
public:
guiwindow(...) //the constructor
private:
Thread thread;
QLabel *labelHeading;
QLineEdit *textpAmp0;
};
class Thread : public QThread
{
public:
Thread();
void setMessage(const QString &message);
void run();
void stop();
private:
};
I want the thread.run() to be able to access the textpAmp0 and disable it.
Is it possible for a public member of a subfunction to access a private
member of the member.
If not what is the best solution.
Would making all the widgets public help??
Please help am stuck.
Thank you.
--
Neeraj Jhawar
Senior Undergraduate
Mechanical Engineering Department
Punjab Engineering College
Chandigarh.
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090109/af388c9c/attachment.html
More information about the Qt-interest-old
mailing list