[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Why do I have to quit twice?
From: Rainer Findenig <findenig_r () yahoo ! com>
Date: 1999-12-22 19:06:07
[Download RAW message or body]
There is another possibility to quit the app: call the
function exit() which is defined in the
standard-C-libs...
So, simply try:
kapp->quit();
exit(0);
Though it's not the best solution, it works (at least
most times ;-) )...
HTH Rainer
--- Espen Sand <espensa@online.no> schrieb:
> 1 You should not have to press twice.
> 2 What KDE libs + Qt libs are you using?
> 3. This list is pretty relevant for this kind of
> question :)
> 4. What happens if you call kapp->quit() twice in
> "okay" ?
>
> On Wed, 22 Dec 1999, Nick Thompson wrote:
> > I have the following code...
> >
> > myform::myform(QWidget *parent, const char *name)
> :
> > QDialog(parent,name,"Noname"){
> > initDialog();
> > QLineEdit_1->setText(getenv("USER"));
> > connect( QPushButton_9, SIGNAL(clicked()),
> kapp, SLOT(quit()) );
> > connect( QPushButton_8, SIGNAL(clicked()),
> this, SLOT(okay()) );
> > }
> >
> > myform::~myform(){
> > }
> >
> > void myform::okay(void){
> > printf("User: %s\n", QLineEdit_1->text());
> > kapp->quit();
> > return;
> > }
> >
> > A bit noddy, I know, but why do I have to click on
> either Button_8 or 9
> > twice to quit? My okay slot runs on both clicks
> since the printf
> > produces output both times, but only quits on the
> second press. Calling
> > kapp->quit() twice does work either.
> >
> > Am I asking this on the wrong KDE list?
> >
> > Thanks,
> > --
> > _ _______ __ __ Nick Thompson |
> Lucent Technologies
> > / \/ / / __\/ // /\ Lucent Technologies |
> (Bell Labs Innovations)
> > / / / /__/ _ / / Microelectronics House |
> nickthompson@lucent.com
> > /_/\_/_/____/_/\\_\/ Kings Ride, Ascot |
> Tel: +44 1344 865951
> > \_\/\\_\____\_\/ \_\ Berkshire SL5 8AD |
> Fax: +44 1344 865959
> --
> Espen Sand
>
>
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic