[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-03-01 4:24:34
[Download RAW message or body]

> Two tips :
> 
> 1) Please don't use
> if (chosen != "")
> but use instead
> if (!chosen.isEmpty());
> when you have to test for an empty QString or
> QStringList.
> 
> Read carefully the Qt doc for each class you use,
> for example for 
> QStringList, click on the "List all member
> functions" link which gives you 
> the inherited member functions as well. Browse
> through that list and read 
> the details for functions you think might be related
> to what you are trying 
> to do.
> The examples are also very helpful.
> 
> 2) Use http://lxr.kde.org/
> Identifier search and type the name of the class you
> want information on, 
> like QStringList or KToolBar
> You then get a list of KDE files using that class.
> Click on a cpp file and 
> browse through the code. Usually, in 2 or 3 clicks I
> find the information I 
> am looking for.
> 
> Hope that helps,
> 
> annma
> 
> 
> 
ok thanx a lot. I have just another simple question.
I'm trying to use those selected files in a slot,
those are wav files that are encoded to oggvorbis
files, it works when I select one file but it doesn't
when I select several files, do I need to make a loop
or a foreach or is there a simple trick to do the job?
this is the slot:

   void Kapp::encodeFile()
 {
          KProcess p;
p << "oggenc";
p << kLineEdit1->text();
p.start(KProcess::Block);
}

thanx in advance

__________________________________________________
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