How to make the "CLOSE" button invisible
-
@mrjj Thank you one more time!
I won't try to do that today (that's a lot).
Tomorrow, I'll do everything calmly and give you feedback.
You helped me MUCH today.
Your tips have moved me, A LOT, in my QT learning.
Big hug!
@Alexandre-Camelo
Hi
It looks a lot but i promise when you have done it a few times its not that crazy.
Its good plan. Just ask if i missed some step or its bugging you.Do note we subclassed QLineEdit here.
To catch events one can also use an eventfilter but subclassing is very useful in
Qt as you can make own custom widgets that way. So i choose to show that way. -
@Alexandre-Camelo
Hi
It looks a lot but i promise when you have done it a few times its not that crazy.
Its good plan. Just ask if i missed some step or its bugging you.Do note we subclassed QLineEdit here.
To catch events one can also use an eventfilter but subclassing is very useful in
Qt as you can make own custom widgets that way. So i choose to show that way.@mrjj said in How to make the "CLOSE" button invisible:
@Alexandre-Camelo
Hi
It looks a lot but i promise when you have done it a few times its not that crazy.
Its good plan. Just ask if i missed some step or its bugging you.Ok mrjj.
It worked!
One more great tip!
I have some questions:
-
Since the event is located in another file, I need to create a procedure inside the file where the line edit is located, so that I can, for example, throw focus on another line edit of that form, right?
-
In this case, I associated the event with a previously existing line edit on the form. So if I need to create focus events for other line edits, do I need to create classes for each of them?
-
What is the "QFocusEvent * event" pointer for? As I did not use it, the system issues a warning that it is not being used.
-
Please give me an example of how to use the pointer "QFocusEvent * event"
-
I created 2 test events, but I want to delete them so that QT doesn't issue warnings. How do I do that? Just delete the .cpp and .h files I created and rebuild?
-
-
@Alexandre-Camelo
Hi
It looks a lot but i promise when you have done it a few times its not that crazy.
Its good plan. Just ask if i missed some step or its bugging you.Do note we subclassed QLineEdit here.
To catch events one can also use an eventfilter but subclassing is very useful in
Qt as you can make own custom widgets that way. So i choose to show that way.@mrjj said in How to make the "CLOSE" button invisible:
To catch events one can also use an eventfilter but subclassing is very useful in
Qt as you can make own custom widgets that way. So i choose to show that way.About eventfilter, I read the documentation, tried to do it, but couldn't.
I think it's best to open a new topic about this, okay?
I will quote you there and await your guidance.
Thanks again.