LineEdit how to add an onfocus function?
Unsolved
General and Desktop
-
Hello! I'm new in Qt and i want to add an onfocus function to LineEdit, i read an article about focusInEvent function and I've changed this function (1 and 2 pic). In Qt Creator i created a form (3) but i don't know how i can use my new class with focusInEvent function which inherits from QLineEdit .
2.
3.
-
You have to promote your widget in the designer: http://doc.qt.io/qt-5/designer-using-custom-widgets.html