[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: qt newbie
From:       pat knoob <pknoob () yahoo ! com>
Date:       2003-02-26 18:36:41
[Download RAW message or body]

When I try to compile I get that :
'Kprocess' undeclared(first use this function)
'p' undeclared(first use this function)

could tell me how and where I need to declare those
functions?

thanx in advance


--- Waldo Bastian <bastian@kde.org> wrote:
> On Wednesday 26 February 2003 18:44, pat knoob
> wrote:
> > I would like to use oggenc.
> >  I have a qfiledialogue to select a wav file and
> > display it in a klineedit and a button to encode
> that
> > file.
> >
> >  this is the slot used by the first button to
> browse
> > and connect to the klineedit:
> >
> >  void myapp::selectFile()
> >  {
> >  QString chosen = QFileDialog::getOpenFileName
> > (QString::null, "Wav files(*.wav)", this );
> >  if (chosen != "") {
> >  kLineEdit1->setText (chosen);
> >  }
> >  }
> >
> >  /* this is the second slot for the encode button
> >  I want to use to encode:*/
> >  void myapp::encodeFile()
> >  { /*here I would like to use the command line
> "oggenc
> > selected_file_from_KLineEdit1.wav"
> >
> >  }
> >  if u could help me filling that encodeFile() slot
> or
> > u know any tutorial...
> 
> KProcess p;
> p << "oggenc";
> p << kLineEdit1->text();
> p.start(KProcess::Block);
> 
> You might also find KURLRequester interesting. It is
> a combination of a 
> lineedit with a browse button.
> 
> Cheers,
> Waldo
> -- 
> bastian@kde.org -=|[ SuSE, The Linux Desktop Experts
> ]|=- bastian@suse.com


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic