Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

QT and KDE prob

Posted on 2003-11-03
4
Medium Priority
?
312 Views
Last Modified: 2010-04-22
This will be very hard to explain but i will try anyway

i have a project called test .....it has test.cpp test.h & update.cpp update.h ....i created a QT dialog that displays on startup, this works fine.....i have added QlineEdit box and a pushButton. In test.cpp when i press the pushButton i can succesfully add text to the lineEdit1 ..using lineEdit1->setText ("wow it worked"); ......but i want a class form update.cpp to be able to add the text to lineEdit1 but it fails with update.cpp:35: error: `lineEdit1' undeclared (first use this function).

the easiest way is to download the project from here and it should all make sense than ;-)
http://www.nutterx.com/download/

it was made with Kdevelop 2.1

Thanks

0
Comment
Question by:nutterx
4 Comments
 
LVL 3

Accepted Solution

by:
guynumber5764 earned 1360 total points
ID: 9676711
The declaration of lineEdit1 (as a QLineEdit *)  and it's new/delete seem to have gotten lost in the shuffle.  It'll have to be public if you want update to see it and, even then it'll have to be explicitely scoped (::).
0
 

Expert Comment

by:probine
ID: 9911897
I think you could use pointers. So the update class will have a pointer to the QT edit box.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question