Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, May 2007
Re: need your help, please


Message 1 in thread

hi, once again
why treat me like that ?
 i just want to a favor , and i haven't thouht it could cause your worries.
sorry every one.
maybe i haven't been understood well for my poor english.
regards
fengli

2007/4/30, 张凤丽 <zhangfenglisdu@xxxxxxxxx>:
>
> hi, all
> i just want to  creat  a  few labels, lineedits and pushbuttons, and i do
> it like this as follows. check for me if it does work as i expect, please!
> thank you in advance.
>
>      QStringList coord;
>      QList<double> val;
>      QVBoxLayout vBoxLayout = new QVBoxLayout(this);
>      vBoxLayout->addLayout(...);
>      vBoxLayout->addLayout(...);
>      for (int i = 0; i < numaxis; ++i)
>     {
>         QLabel *coordLabel = new QLabel(coord[i]);
>         QLineEdit *coordLineEdit = new QLineEdit();
>         coordLineEdit->setText(val[i]);
>         QPushButton *coordPushButton = new QPushButton(tr("Teach"), 0);
>         QHBoxLayout *coordLayout = new QHBoxLayout(this);
>         QHBoxLayout->addWidget(coordLabel);
>         QHBoxLayout->addWidget(coordLineEdit);
>         QHBoxLayout->addWidget(coordPushButton);
>         vBoxLayout->addLayout(coorLayoutLayout);
>         connect(coordLineEdit, SIGNAL(returnPressed()), this,
> SLOT(coordLineEditTextChanged()));
>         connect(coordPushButton, SIGNAL(clicked()), this,
> SLOT(getLocation()));
>     }
>
> regards
> fengli
>

Message 2 in thread

Hi,

On Tuesday 01 May 2007, ååä wrote:
> hi, once again

Let me answer your questions in reverse...

> maybe i haven't been understood well for my poor english.

No, we understood you quite well. Your English is good enough to 
communicate. Just a little hint among non-native English-speakers: the 
first letter of each sentence, the word "I" and the first letter of names 
(including the names of languages and countries) needs to be upper case -- 
this is not important to understand you, but it shows that you care about 
the one you ask.

>  i just want to a favor , and i haven't thouht it could cause your
> worries. sorry every one.

Exactly here lies the problem. 

We are all in the same situation as you are: we are just users of Qt and we 
all have problems that need to be solved fast. We are here to help each 
other out a bit. We are not here to patiently wait until someone comes with 
a little problem to be solved so we finally have something to break our 
boredom. And we are definitely not here to find out what the problem is in 
the first place.

We do not just do favors, we expect you to make them as small favors as 
possible, because we have time for small ones, but not for big ones. Since 
this is a free day in Germany I'll do you a big favor by telling you how to 
get us to help you.


So how do you get us to help you?

Very easy.

1) Describe in a few short and precise sentences what exactly your problem 
is. -> Your mail did not meet this criteria because you did not describe 
what you expected and what we should look at. We had to guess.

2) Help yourself. Compile your own code, use your own code, check what it 
does on your own computer. Then describe it: what did you expect, what did 
you see instead, what do you want changed, and what do you not understand 
about this.

3) Use other tools to help yourself first: Trolltech has a list archive. 
Many questions have been asked before and can be answered by just looking 
into the archive. There are other forums out there and most are indexed by 
Google, Yahoo, and all the other search engines. Use those engines. 
Document that you have searched (eg. "I fed '+Qt widget problem' into 
Google, but did not get a useful answer").

4) If possible provide minimal compilable examples. This means: a very short 
(max. 100 lines) piece of code that can be compiled without 
modification. -> Your code did not meet the second criteria: it was not 
compilable.

5) Use meaningful subject lines. "need your help" is not meaningful. It 
forces every one of us to read the mail first before we can decide whether 
we can help you. Use a line like "problem with layouts and widgets".

There is more in the link I sent you, but I hope you get the point: we do 
not yet know what your exact problem is, you did not show that you tried to 
solve it yourself, we still do not have a compilable example that would 
actually help us to help you.


	Konrad

Attachment:

Attachment: pgpxBObnb2JHk.pgp
Description: PGP signature