PDA

View Full Version : Search bar for Internet Radio



gols
14th June 2010, 00:56
Which classes do I must use for setting a search bar?

high_flyer
14th June 2010, 09:54
probably QLineEdit is a good place to start.

gols
14th June 2010, 12:55
I have already tried with Qlinedit but I don't succeed to do it. I maybe I did it the wrong way.

high_flyer
14th June 2010, 13:02
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.

gols
14th June 2010, 13:27
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.

high_flyer
14th June 2010, 13:51
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.