?
Solved

QT and KDE prob

Posted on 2003-11-03
4
Medium Priority
?
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

719 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