Which classes do I must use for setting a search bar?
Which classes do I must use for setting a search bar?
probably QLineEdit is a good place to start.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I have already tried with Qlinedit but I don't succeed to do it. I maybe I did it the wrong way.
Maybe, but if you don't show us the code, and explain what it is you are trying to do in your code, we wont really be able to know.I maybe I did it the wrong way.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Sorry,
I do that just to retrieve data from keyboard:
lineEdit2 = new QLineEdit;
layout->addWidget(lineEdit2);
text = new QString;
text->grabKeyboard();
lineEdit2.setText(text);
but grabKeyboard can't be used by a QString.
Look, it is clear that you do not know how to program in C++.
This forum is NOT about teaching C++ programming.
I suggest you first learn to code sufficiently with C++, and then come back with specific questions.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks