I have designed a dialog in Qt designer and I want to use the name of each child widget for some coding in cpp file. But the names I have given to buttons etc in Qt designer are not working as pointer.More over their names in ui_mydialogname.h are not the one i gave them in Designer. Even when I use the name assigned to them the suggestion window won't popup. What do I do?
C++ programmer 0 Light Poster
Recommended Answers
Jump to PostDo you have a simple example of the problem that you have? Post some of your code. It's hard to suggest anything when no-one can see how you're using things...
Jump to Post@Ravenous Bro its just a drag and drop program in which i gave names to buttons but when i try to use those buttons using code in the program .cpp file, i can't use them as pointers or objects.
It's the "use those buttons using code in the program" part …
Jump to PostSo my question is this true and if this definition also goes for a function's local pointers.
No, you still have to call
delete
on anything that you choose tonew
in a function. In fact, I think that Qt only deletes certain pointers and only if you have the …
Jump to PostCan i do like this
QString ch=first; // where first is also QStringI don't think so, since the
ch=ch.unicode()+1
line probably won't work as expected for aQString
, compared to aQChar
. It's also possible that yourch
could be changed later in the code to be …
All 16 Replies
ravenous 266 Posting Pro in Training
Eagletalon 34 Junior Poster in Training
C++ programmer 0 Light Poster
Eagletalon 34 Junior Poster in Training
C++ programmer 0 Light Poster
C++ programmer 0 Light Poster
ravenous 266 Posting Pro in Training
Eagletalon 34 Junior Poster in Training
C++ programmer 0 Light Poster
Eagletalon 34 Junior Poster in Training
C++ programmer 0 Light Poster
C++ programmer 0 Light Poster
ravenous 266 Posting Pro in Training
C++ programmer 0 Light Poster
ravenous 266 Posting Pro in Training
C++ programmer 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.