maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Is there any Qt Control-Panel Applet example ? (https://talk.maemo.org/showthread.php?t=47225)

fredoll 2010-03-12 16:09

Is there any Qt Control-Panel Applet example ?
 
Hi,
I want to develop a new ControlPanel Applet and I suppose it is the right time to do it the Qt way ...
I've already done it with GTK (gnokii-gconf, contact-infos).
I didn't find any example in the docs or in the garage project ...

Do you know any ?

It would be nice to find a nice project with everything set up right (deb, i18n, config ...)

Thanks

Fred

krk969 2010-03-12 16:12

Re: Is there any Qt Control-Panel Applet example ?
 
i dont think QT supports status bar applets yet.
It did support the desktop applet mode by setting an attribute on the widget WA_QMaemo5DesktopApplet but then later I saw it was removed not sure if they have put it back in the later releases of qt4.6. I had tried that and it worked just fine.

pillar 2010-03-12 16:16

Re: Is there any Qt Control-Panel Applet example ?
 
http://qt.gitorious.org/+qt-develope...5/controlpanel

There is an example, but it's still quite experimental. Report back if you are able to make something with it :)

fredoll 2010-03-12 16:19

Re: Is there any Qt Control-Panel Applet example ?
 
If I'm not mistaken, Control-Panel applet is a dialog called from an execute entryPoint in a library (at least it was like this in Maemo4)

fredoll 2010-03-12 16:20

Re: Is there any Qt Control-Panel Applet example ?
 
Quote:

Originally Posted by pillar (Post 565213)
http://qt.gitorious.org/+qt-develope...5/controlpanel

There is an example, but it's still quite experimental. Report back if you are able to make something with it :)

Thanks a lot, I'll try that :)

krk969 2010-03-12 16:20

Re: Is there any Qt Control-Panel Applet example ?
 
Quote:

Originally Posted by pillar (Post 565213)
http://qt.gitorious.org/+qt-develope...5/controlpanel

There is an example, but it's still quite experimental. Report back if you are able to make something with it :)

have seen that, but sorry thats not how real QT code should look like :)
Its using the Atoms directly and assuming the underlying window manager is X11, QT is supposed to be platform independent , so I think we just need to wait till the QTboys bring out some atttribute that can be set on a widget. :cool:

However, that would still work for the N900 ;)

fredoll 2010-03-12 16:24

Re: Is there any Qt Control-Panel Applet example ?
 
Well I had a quick glance and it looks like the execute launch an app (/usr/bin/qapplet) passing the parent window id on the command line ...

I didn't think it was that bad ...

Will there be a control panel in harmattan ? or is the concept completely changed ?

calvin_42 2010-05-11 22:06

Re: Is there any Qt Control-Panel Applet example ?
 
Any news about it ?

Has anyone a tutorial on How to make a ControlPanel Applet ?

calvin_42 2010-05-12 00:11

Re: Is there any Qt Control-Panel Applet example ?
 
I have managed to create a ControlPanel Applet with the GTK launcher available on http://qt.gitorious.org/+qt-develope...lugin/plugin.c.

But my main Application needed X11 librairies to get the parent, so the size of it increased from 500k to 800k.

If someone has a better solution :)

Joorin 2010-05-12 07:14

Re: Is there any Qt Control-Panel Applet example ?
 
Quote:

Originally Posted by calvin_42 (Post 654327)
I have managed to create a ControlPanel Applet with the GTK launcher available on http://qt.gitorious.org/+qt-develope...lugin/plugin.c.

But my main Application needed X11 librairies to get the parent, so the size of it increased from 500k to 800k.

If someone has a better solution :)

How would needing the X11 libraries make your application bigger? Do you link them statically?


All times are GMT. The time now is 19:55.

vBulletin® Version 3.8.8