You are not logged in.

Search results

Search results 1-12 of 12.

Thursday, October 21st 2004, 3:55am

Author: fortezza

Fixed!

Yesterday evening, I acted on the hunch that there was a setting in a file that was not getting updated by my 'make''s or deleted by my 'make clean''s, so I copied just my header and source files over to a new directory, rebuilt the project file, and then recompiled my application. It works perfectly now. I still do not need to create a KApplication objec, but I found I did need to call the DCOPclient::registerAs() function before I could interact with Kmix. Thank you for your help. I have new i...

Wednesday, October 20th 2004, 3:21am

Author: fortezza

DCop client within Subclass?

Oh, I tried that this afternoon ( MST )during my lunch break. (it's really bugging me ). I've tried creating kapplication objects and other techniques in code I have found by searching for "dcop" on the Google search engine., none of them take care of the runtime error I am getting. The only big difference I see between my test dcop application and my project is that in the test all of the work is done in the 'main' function, while in my project it is done in the object's constructor function. S...

Tuesday, October 19th 2004, 8:46pm

Author: fortezza

DCop client within Subclass?

I recompiled and re-ran my test DCOP app without changing a single line, it still works to adjust the volume ( I changed the master and the PCM mixer volumes with it ). Perhaps kapp is a static KApplication object? Anyway, I could try linking to the libDCOP, if instructions on how to do so were avaiable. So far I have found no useful hits from Google.com on it.

Tuesday, October 19th 2004, 5:49am

Author: fortezza

DCop client within Subclass?

I am tearing my hair out again attempting to use a DCOPclient pointer within my QT application to access kmix's volume settings. I felt pretty confident as I had previously made a stand-alone application for changing the volume just to make sure I know how to do it. However, while my test application that used the following two line so create a perfectly usable DCOPclient pointer had no problems: Source code 1 2 kapp->dcopClient()->registerAs("MonAppliIface"); DCOPClient *client = kapp->dcopClie...

Thursday, October 14th 2004, 5:08am

Author: fortezza

That was it!

You hit the nail on the head. I was able to createt the DCOPClient object and ( with a lot of experimentation ) , figure how to manipulate the master and pcm volume controls via calls such as : Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 QApplication a( argc, argv ); QByteArray data; QDataStream arg( data, IO_WriteOnly ); bool ok; QString strmixer = (QString) argv[1]; QString strvol = (QString) argv[2]; int mixer = strmixer.toInt( &ok, 10 ); int vol = strvol.toInt( &ok, 10 ); arg <<...

Wednesday, October 13th 2004, 6:02am

Author: fortezza

Manage KDE Volume From QT

lol, now I have given up. Even with the include issue resolved, I get errors for the following code: ***code*** Source code 1 2 3 4 5 6 7 8 #include <kapp.h> int main(int argc, char **argv) { KApplication app(argc, argv, "a", 0 , 0 ); //DCOPClient *client = kapp->dcopClient(); return 0; } g++ -o dcop main.o -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm main.o(.text+0x51): In function `main': /home/fortezza/qt3/dcop/main.cpp:5: undefined reference to `KApplication::KApplication[...

Wednesday, October 13th 2004, 4:29am

Author: fortezza

Manage KDE Volume From QT

Ok, I don't give up so easily. I did a "find /usr -name 'dcop*' " and found the header file in /usr/include/kde ( same as $KDEDIR/include/kde ), I added that to my qmake,pro file and reran "qmake" and "make". The app compiles and runs fine. Now I can research how to access kmix through DCOP and hopefully everything works as advertised from here on out. However, I maintain my complaint against the bad documentation on KDE.org and other sites. If you are going to teach something, teach it complete...

Wednesday, October 13th 2004, 3:54am

Author: fortezza

Manage KDE Volume From QT

Well, there isn't any DCOP code in my application yet, as I cannot get it to complile even if simply include the following files ( from this example : http://phil.freehackers.org/kde/kde-techno/kde-techno-2.html ) #include <dcopclient.h> #include <kapp.h> I will say it cannot file the files and not compile. Most likely I need to add a KDE specific library path to the make file, but so far, for the 20 or so examples I have read for using DCOP in C++, there hasn't been the slightest hint as to how...

Tuesday, October 12th 2004, 12:26am

Author: fortezza

Manage KDE Volume From QT

Thank you. I found an example yesterday that had me include a few header files to access to the DCOP interface , but when I went to compile my application after including them, it say it could not find them. Hopefully I will find an example that shows how to include the appropriate header files in my application. For now have a qprocess object interfacing with DCOP via the shell command, but I would rather not do that in the future.

Monday, October 11th 2004, 5:33am

Author: fortezza

Manage KDE Volume From QT

I've been googl'ing for information on how to both set and get volume ( master and pcm ) information from within my QT application. So far I have not found anything useful. I am making a volume control slider, which I want to have it's 0 correlate with KDE's "0" or no volume, and then same with 100% volume level. And of course I want to tie movement of the slider with changes in the volume in KDE. Any advice?

Sunday, October 10th 2004, 6:44pm

Author: fortezza

KDevelop (Gideon) vs. KDEStudio?

How about Sourceforge.net? Btw, I have never been part of a development team...how difficult is it to join an existing one ( on Sourceforge ) ?

Sunday, October 10th 2004, 6:41pm

Author: fortezza

RE: QXEmbed - How to put a Xlib window into QWidget

Does this still work in QT 3.2.3? I noticed that QXEmbed is not mentioned in the QT Assitant documents and it gives me an error when attempting to include "qxembed.h" in my application. Perhaps Trolltech replaced it ( QXEmbed class ) with something else?