Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, November 2006
Global QDecorator


Message 1 in thread

Hi all,

I'm developing a Qtopia Core based set of applications. I want to have
several pre-defined menus in window header, so I've started to examine
QDecorator system. It seems, that there's no way to set window decoration
for all apps running inside QWS. I have to set my decorator explicitly in
every application.

I would like to know, is there any way to simplify the task, like some call
to QWSServer...

-- 
 [ signature omitted ] 

Message 2 in thread

Am 11.11.2006 um 15:58 schrieb Vladimir Farcaller Pouzanov:

> Hi all,
>
> I'm developing a Qtopia Core based set of applications. I want to have
> several pre-defined menus in window header, so I've started to examine
> QDecorator system. It seems, that there's no way to set window  
> decoration
> for all apps running inside QWS. I have to set my decorator  
> explicitly in
> every application.
>
> I would like to know, is there any way to simplify the task, like  
> some call
> to QWSServer...


No,

there is no way and this is one of the reasons http:// 
doc.trolltech.com/qtopia4.1/qtopiaapplication.html
exists in the Qtopia Platform. This class will take care of  
initialisation decoration, fonts, colors...

kind regards
	holger

--
 [ signature omitted ] 

Message 3 in thread

Am 11.11.2006 um 16:16 schrieb Vladimir Pouzanov:

> Hello Holger,
>
> On 11/11/06, Holger Freyther <freyther@xxxxxxxxxxxxx> wrote:
>> No,
>>
>> there is no way and this is one of the reasons
>> http://doc.trolltech.com/qtopia4.1/qtopiaapplication.html
>> exists in the Qtopia Platform. This class will take care of  
>> initialisation
>> decoration, fonts, colors...
>
> Thanks for fast answer. Am I missing something or there's no
> QtopiaApplication in qtopia core 4.2?

Ah right. This is a class inside the famous 'Qtopia Platform'. I  
think you have two options here. The first one is creating a small  
library containing YourApplication class applying system parameters.  
Alternatively you could just build one decoration into QtopiaCore.  
I'm pretty sure this way you force every application to use this  
decoration....

kind regarads
	holger

--
 [ signature omitted ]