Qt-interest Archive, August 2007
hi
Message 1 in thread
hi,
being new to Qt. i am struggling at the start itself. i created a form using
Qt designer.i hav added a command button ok. on clicking ok button i want a
msg box to be displayed showing a msg n after tht another form to get open..
for that i implemented a slot also created main file for the project , the
header file n implementation files usin uic commands on the terminal. stil
am gettin an error msg and it says tht the slot is not implemented??... wat
have i done wrong?.. any explanations?.. or can any1 tell me how do i
connect 2 slots to one signal ie when the ok button is clickd, step by step
wid all the commands?? am already using o'reilly book for Qt... have read
the last chapter also...still cudnt get it...
priya.
Message 2 in thread
priya wrote:
> hi,
> being new to Qt. i am struggling at the start itself. i created a form
> using Qt designer.i hav added a command button ok. on clicking ok
button i
> want a msg box to be displayed showing a msg n after tht another form
to
> get open.. for that i implemented a slot also created main file for
the
> project , the header file n implementation files usin uic commands on
the
> terminal. stil am gettin an error msg and it says tht the slot is not
> implemented??... wat have i done wrong?.. any explanations?.. or can
any1
> tell me how do i connect 2 slots to one signal ie when the ok button
is
> clickd, step by step wid all the commands?? am already using o'reilly
book
> for Qt... have read the last chapter also...still cudnt get it...
>
> priya.
Hi and welcome.
It's hard to say what the problem is without you showing us any code.
Could you at least show the connect() call and the signal/slot
definitions?
A common error would be to have the function parameter names in the
connect() call - you have to omit them.
P.S.
Your mail is hard to read - try to spell check it before submitting to
the list.
Cheers,
Peter
--
[ signature omitted ]
Message 3 in thread
On Fri, August 10, 2007 17:16, priya s wrote:
> being new to Qt. i am struggling at the start itself. i created a form
> using
> Qt designer.
gud
> i hav added a command button ok. on clicking ok button i want
> a
> msg box to be displayed showing a msg n after tht another form to get
> open..
eazy
> for that i implemented a slot also created main file for the project , the
> header file n implementation files usin uic commands on the terminal. stil
> am gettin an error msg and it says tht the slot is not implemented??...
> wat
> have i done wrong?.. any explanations?..
did U chk teh spelin off yur c++ commmnds?
> or can any1 tell me how do i
> connect 2 slots to one signal ie when the ok button is clickd, step by
> step
> wid all the commands??
U connct the 1st un 1st and the 2nd un direct aftr that.
In bth casses U use teh "connect" commd (mak sur you dont forgt any lettrs
or symbels and U dont spel it wrung). Forthermor U writte "SLOT(...)"
around yur slots and "SIGNAL(...)" round yur signalls. also be sur you hav
valid pointors too yur objeckts.
> am already using o'reilly book for Qt... have read
> the last chapter also...still cudnt get it...
read the first un too! it iss rather good. all the ozzers between thos 2
are also worthe yur while!
SCNR,
Konrad
--
[ signature omitted ]
Message 4 in thread
Konrad Rosenbaum schrieb:
> > ...
> In bth casses U use teh "connect" commd (mak sur you dont forgt any lettrs
> or symbels and U dont spel it wrung). Forthermor U writte "SLOT(...)"
mak sure u don't confuze the SLUT()! Else she will dizconnekt from
u!!111 Bring good parameterz 2, or she will take other 1.
Also teh oxford dictionary has some gud hintz!!11!!!
Hav nice weekend, Oliver
p.s. Sorry, it's friday, I could not resist...
--
[ signature omitted ]
Message 5 in thread
mmap schrieb:
> I had used the connect command and wrote the slot too.
> And didn't spell anything wrongly.
> And yes, the Oxford dictionary will provide useful
> hints for you more than me.
I doubt so very much: your few sentences contain numerous errors.
> Have a nice week.
> Priya
> P.S.If you cant help others then don't bother replying.
> Its simply irritating.
> You should learn to resist sending useless mails.
I never intended to help you but to show you that your chat room dialect
is not appreciated here on this list! And obviously I was not the only
one. Choose an online chat room for kids if you want to keep on like this.
If you are not willing to spend the time to write your posts in a good
english (and it may well have grammatical errors as your lines above,
that's okay for most people), then why should anyone spent her precious
time to answer your question? Think about it - and then you are welcome
here again!
And please choose a meaningful subject next time: "Hi" is not
descriptive (and mostly reveals poorly asked questions).
Cheers, Oliver
p.s. Don't write to me in private!
>
> On 8/10/07, *Till Oliver Knoll* <oliver.knoll@xxxxxxxxxxx
> <mailto:oliver.knoll@xxxxxxxxxxx>> wrote:
>
> Konrad Rosenbaum schrieb:
> > > ...
> > In bth casses U use teh "connect" commd (mak sur you dont forgt
> any lettrs
> > or symbels and U dont spel it wrung). Forthermor U writte
> "SLOT(...)"
>
> mak sure u don't confuze the SLUT()! Else she will dizconnekt from
> u!!111 Bring good parameterz 2, or she will take other 1.
>
> Also teh oxford dictionary has some gud hintz!!11!!!
>
> Hav nice weekend, Oliver
>
> p.s. Sorry, it's friday, I could not resist...
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> <mailto:qt-interest-request@xxxxxxxxxxxxx> with "unsubscribe" in the
> subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 6 in thread
mmap schrieb:
> This was my first mail to Qt interest group.
So I understood.
> I am a student and learning
> Qt on my own.
I was also a student, learning Qt within 2 weeks when writing
www.pointshop3d.com. That was back in 2000. I never wrote a post to this
list in such a chat room style though!
> If you wanted to point out something you could have done
> that in a better manner, rather than sending rude mails.
*Your* post was rude in the very first place. I just wrote in the same
manner as *you* did, remember? So if you call this "rude" then you have
learned a lesson. Good.
In fact I actually *gave* you some valid hints, although they were
burried within the chat room dialect: "Dont confuse the slot()" meant
that the compiler does *not* complain when you write the name of the
slot wrongly - only at runtime you will get a warning message on stderr.
And "bring good parameters" meant that you must not write the
parameter's name in the connect call, *only* the type, e.g.
WRONG: connect (this, SIGNAL (foo (int i)),
this, SLOT (fooSlot (int i)));
GOOD: connect (this, SIGNAL (foo (int)),
this, SLOT (fooSlot (int)));
> It is very
> obvious that the only thing you are interested in is being rude and
> sending useless mails.
Wrong, see above.
> Priya.
> P.S. I am not interested in writing to you in private.
Then *please stop doing so* for God's sake! You have just done so now a
2nd time! Check your recipient's field (To:) before hitting the "Send"
button! Is this so hard?
Cheers, Oliver
--
[ signature omitted ]
Message 7 in thread
On 8/13/07, Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx> wrote:
>
> mmap schrieb:
> > This was my first mail to Qt interest group.
>
> So I understood.
Good that u have that much sense at least !!!
> I am a student and learning
> > Qt on my own.
>
> I was also a student, learning Qt within 2 weeks when writing
> www.pointshop3d.com. That was back in 2000. I never wrote a post to this
> list in such a chat room style though!
Well it differs from person to person!! Just because you prefer it doesn't
> mean same goes for everyone!!!
>
> > If you wanted to point out something you could have done
> > that in a better manner, rather than sending rude mails.
>
> *Your* post was rude in the very first place. I just wrote in the same
> manner as *you* did, remember? So if you call this "rude" then you have
> learned a lesson. Good.
And in the post i was nowhere being rude. I was asking my QUERIES!!
(Remember??!! Lost are you??)
By the way, i also didn't specify any where in my post that only people
whose name is OLIVER should reply :P (get your eyesight checked!!)
In fact I actually *gave* you some valid hints, although they were
> burried within the chat room dialect: "Dont confuse the slot()" meant
> that the compiler does *not* complain when you write the name of the
> slot wrongly - only at runtime you will get a warning message on stderr.
> And "bring good parameters" meant that you must not write the
> parameter's name in the connect call, *only* the type, e.g.
>
> WRONG: connect (this, SIGNAL (foo (int i)),
> this, SLOT (fooSlot (int i)));
>
> GOOD: connect (this, SIGNAL (foo (int)),
> this, SLOT (fooSlot (int)));
>
> And your hints were useful to my dogs who understand your hints!!
> It is very
> > obvious that the only thing you are interested in is being rude and
> > sending useless mails.
>
> Wrong, see above.
SEE ABOVE YOURSELF!!!
> Priya.
> > P.S. I am not interested in writing to you in private.
>
> Then *please stop doing so* for God's sake! You have just done so now a
> 2nd time! Check your recipient's field (To:) before hitting the "Send"
> button! Is this so hard?
>
> Cheers, Oliver
SEE ABOVE AGAIN!!! :D :D :D
P.S. I thought u didn't want to learn your lesson in public!!! (Hoped you
had that much sense!!)
--
[ signature omitted ]
Message 8 in thread
Priya,
Such a pity that you seem to be more interested in engaging in a
flamewar than in your original problem with Qt.
Till Oliver Knoll gave you hints, even if they seemed rude to you.
> And your hints were useful to my dogs who understand
> your hints!!
This remark is disgusting and if taken literally raises interesting
questions.
P.S.
if you must flame, do it personally. While not all personal mail is
flame mail all flame mail is personal mail. (Yes, you can flame "the
list". Then it's... "personal" to the list (represented by its
members).) - see http://email.about.com/library/weekly/aa110998b.htm
*plonk*
--
[ signature omitted ]
Message 9 in thread
Peter,
>
> I had sent the mail saying that she had sent me a rude email privately.
> But she said i was rude because i emailed her privately. How can a person
> who is seeking help be rude?
>
> She insisted that i send this to the qt interest email address only (you
> can see it in the post) and not to her on her private email address. Its her
> choice. You can advise her about how to reply to queries and not to be rude,
> if you wish to.
>
> I had not started this purposely. She was trying to teach me a lesson (in
> grammar rather than Qt) which is wrong on her part. She should have minded
> her own business if she was not interested in helping me regarding my query.
> I can show u what she had replied when i had posted my question to the
> mailing list.
>
> I am here to learn, but i cant tolerate anyone being rude to me. I am not
> doing any harm by asking my doubts. I don't regret what i did.
> regards,
> Priya
>
> On 8/13/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
> >
> > Priya,
> > Such a pity that you seem to be more interested in engaging in a
> > flamewar than in your original problem with Qt.
> > Till Oliver Knoll gave you hints, even if they seemed rude to you.
> >
> > > And your hints were useful to my dogs who understand
> > > your hints!!
> >
> > This remark is disgusting and if taken literally raises interesting
> > questions.
> >
> > P.S.
> > if you must flame, do it personally. While not all personal mail is
> > flame mail all flame mail is personal mail. (Yes, you can flame "the
> > list". Then it's... "personal" to the list (represented by its
> > members).) - see http://email.about.com/library/weekly/aa110998b.htm
> >
> > *plonk*
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
>
Message 10 in thread
Can we all please stop this thread?
First, yes there was very poor grammar, and very poor spelling in the
OP. This is NOT a chat room, and showing no respect to us, will not get
you any back
Second, Till, was probably overly insensitive to you in his response...
However, if your read his original email, it was tongue in cheek...
(p.s. Sorry, it's friday, I could not resist...
)
Third, we are supposed to be professionals here.... Your comments about
dogs will not get you anywhere... Till has been around for years and has
been a huge resource for many a noob on the list.
Forth, NONE OF US get paid to be on this list. Don't like the responses
you get, pay us as a consultant, and we will be as nice as you ever
wish.
Scott
________________________________
From: mmap [mailto:mmap21@xxxxxxxxx]
Sent: Monday, August 13, 2007 10:13 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: [OT] Re: hi
Peter,
I had sent the mail saying that she had sent me a rude email
privately. But she said i was rude because i emailed her privately. How
can a person who is seeking help be rude?
She insisted that i send this to the qt interest email address
only (you can see it in the post) and not to her on her private email
address. Its her choice. You can advise her about how to reply to
queries and not to be rude, if you wish to.
I had not started this purposely. She was trying to teach me a
lesson (in grammar rather than Qt) which is wrong on her part. She
should have minded her own business if she was not interested in helping
me regarding my query. I can show u what she had replied when i had
posted my question to the mailing list.
I am here to learn, but i cant tolerate anyone being rude to me.
I am not doing any harm by asking my doubts. I don't regret what i did.
regards,
Priya
On 8/13/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
Priya,
Such a pity that you seem to be more interested in engaging in a
flamewar than in your original problem with Qt.
Till Oliver Knoll gave you hints, even if they seemed rude to
you.
> And your hints were useful to my dogs who understand
> your hints!!
This remark is disgusting and if taken literally raises
interesting
questions.
P.S.
if you must flame, do it personally. While not all personal mail
is
flame mail all flame mail is personal mail. (Yes, you can flame
"the
list". Then it's... "personal" to the list (represented by its
members).) - see
http://email.about.com/library/weekly/aa110998b.htm
*plonk*
--
To unsubscribe - send a mail to
qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or
the body.
List archive and information:
http://lists.trolltech.com/qt-interest/
Message 11 in thread
No please continue, this makes Monday so much more entertaining!!!
SCNR
Christo
>From: "Scott Aron Bloom" <scott@xxxxxxxxxxxx>
>To: <qt-interest@xxxxxxxxxxxxx>
>Subject: RE: [OT] Re: hi
>Date: Mon, 13 Aug 2007 10:19:07 -0700
>
>Can we all please stop this thread?
>
>
>
>First, yes there was very poor grammar, and very poor spelling in the
>OP. This is NOT a chat room, and showing no respect to us, will not get
>you any back
>
>Second, Till, was probably overly insensitive to you in his response...
>However, if your read his original email, it was tongue in cheek...
>(p.s. Sorry, it's friday, I could not resist...
>
>)
>
>Third, we are supposed to be professionals here.... Your comments about
>dogs will not get you anywhere... Till has been around for years and has
>been a huge resource for many a noob on the list.
>
>Forth, NONE OF US get paid to be on this list. Don't like the responses
>you get, pay us as a consultant, and we will be as nice as you ever
>wish.
>
>
>
>Scott
>
>
>
>
>
>________________________________
>
>From: mmap [mailto:mmap21@xxxxxxxxx]
>Sent: Monday, August 13, 2007 10:13 AM
>To: qt-interest@xxxxxxxxxxxxx
>Subject: Re: [OT] Re: hi
>
>
>
>
>
>
>
> Peter,
>
> I had sent the mail saying that she had sent me a rude email
>privately. But she said i was rude because i emailed her privately. How
>can a person who is seeking help be rude?
>
> She insisted that i send this to the qt interest email address
>only (you can see it in the post) and not to her on her private email
>address. Its her choice. You can advise her about how to reply to
>queries and not to be rude, if you wish to.
>
> I had not started this purposely. She was trying to teach me a
>lesson (in grammar rather than Qt) which is wrong on her part. She
>should have minded her own business if she was not interested in helping
>me regarding my query. I can show u what she had replied when i had
>posted my question to the mailing list.
>
> I am here to learn, but i cant tolerate anyone being rude to me.
>I am not doing any harm by asking my doubts. I don't regret what i did.
> regards,
> Priya
>
>
>
> On 8/13/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
>
> Priya,
> Such a pity that you seem to be more interested in engaging in a
> flamewar than in your original problem with Qt.
> Till Oliver Knoll gave you hints, even if they seemed rude to
>you.
>
> > And your hints were useful to my dogs who understand
> > your hints!!
>
> This remark is disgusting and if taken literally raises
>interesting
> questions.
>
> P.S.
> if you must flame, do it personally. While not all personal mail
>is
> flame mail all flame mail is personal mail. (Yes, you can flame
>"the
> list". Then it's... "personal" to the list (represented by its
> members).) - see
>http://email.about.com/library/weekly/aa110998b.htm
>
> *plonk*
>
> --
> To unsubscribe - send a mail to
>qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or
>the body.
> List archive and information:
>http://lists.trolltech.com/qt-interest/
>
>
>
>
>
>
>
_________________________________________________________________
Get Cultured With Arts & Culture Festivals On Live Maps
http://local.live.com/?mkt=en-ca&v=2&cid=A6D6BDB4586E357F!2010&encType=1&style=h&FORM=SERNEP
--
[ signature omitted ]
Message 12 in thread
mmap schrieb:
>
>
>
> Peter,
>
> I had sent the mail saying that she had sent me a rude email
I am male! Oliver is a male name. Just in case you are treating women in
the same tone you just did (that would explain maybe your absolutely
misplaced voice here!).
> privately. But she said i was rude because i emailed her privately.
> How can a person who is seeking help be rude?
No! Wrong! I did not say your email was rude because you *sent it to me
in private* (= to my private email adress instead of to the list, as I
prefer it). I said your first post was rude (in reply to another email
that you had sent to me in private) *because you had written it in this
chat room dialect*. Don't confuse the facts, please!
And please go search the archive about "chat room dialect" and you will
quickly find out that this is not the place to use it here. And it had
been pointed out by 3 members of this list, including me.
So please take this as a strong advice or stop posting here.
>
> She insisted that i send this to the qt interest email address only
And you failed twice in doing so.
> I had not started this purposely. She was trying to teach me a
I wasn't trying. I simply told you the facts: no chat room dialect
please in this list! It's not polite. People spend time to answer your
questions, so please invest your time to formulate the questions properly.
> lesson (in grammar rather than Qt) which is wrong on her part. She
No! Wrong again! I did not complain about *grammar* (in fact I wrote
that it's okay to have grammatical mistakes, I'm not a native english
speaker myself). I complained about your *chat room dialect*! Please
stick to the facts!
> should have minded her own business if she was not interested in
> helping me regarding my query. I can show u what she had replied
> when i had posted my question to the mailing list.
You don't need to show it, I posted it on this list, so everyone who is
interested in this useless discussion we're having has already read it.
>
> I am here to learn, but i cant tolerate anyone being rude to me. I
And you are welcome to learn! Simply follow the advices you are given
and see how others ask their questions. Good question -> good answer.
> am not doing any harm by asking my doubts. I don't regret what i did.
Then you won't get any replies, at least not from me if you continue
like this (chat room dialect).
So, you have taken my point, appreciate it or not, but please don't
twist the facts from people who have been much longer on this list than
you studied! This is my last post regarding this issue.
Cheers, Oliver
p.s. Sorry to all others for the noise!
--
[ signature omitted ]
Message 13 in thread
Priya wrote:
>
> Thanks for your reply.
> I have named the button as 'ok' and the slot as 'welcome'. I
> have also generated the implementation header file and also
> the .cpp file using 'uic' command.
>
> In the .cpp file i have written
> QmessageBox::information(this,"Entry
> information","Welcome",QmessageBox::ok);
> in the void LoginImpl::welcome() function.
>
> I didn't make any changes in the skeleton generated for
> header file using 'uic' command.
>
> Now, in which file am i supposed to write connect() call? and
> what parameters are to be passed?
> Also, what changes should i make in the main file?
> And if i want to open a new dialog after the welcome()
> function is executed what steps should i take?
> Priya
> P.S. Hope my mail is readable this time. Last time i was in a
> hurry so the short forms. Sorry.
Hi Priya,
your mail is easier to read this time, but you should have sent it to
the list - not to me in private.
i suggest you check out the fine Qt Tutorial here:
http://doc.trolltech.com/4.3/tutorial.html
it demonstrates nicely where to do the connect() call.
Other useful links for Qt Beginners:
http://doc.trolltech.com/4.3/index.html
http://doc.trolltech.com/4.3/how-to-learn-qt.html
I hope you're using a current (4.3.x or 4.2.x) Qt Version.
Cheers,
Peter
--
[ signature omitted ]