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

List:       kde-freeqt
Subject:    Re: [freeqt] paintdevice/painter & pixmap problem, for Olivier I guess
From:       Stephan Kulow <coolo () kde ! org>
Date:       1998-09-28 18:32:24
[Download RAW message or body]

Lokh wrote:
> 
> > BTW handle: I thought about this wd == 0 thing again.
> >
> > QWidget *w = new QWidget();
> > XSetWindowBackgroundPixmap(qApp->disp, w->winId(), None);
> >
> > would be perfect Qt code. It wouldn't do much, but it would
> > compile and run (at least I guess so, never tried it :).
> > But it would die in Harmony, because winId() may be 0. I
> > can't tell you a place where this may happen, but I still
> > can't see anything good in this creation delay - only not
> > so good things.
> 
> I don't think winId() is implemented yet (harmony uses handle() instead.
> It should be changed, but I'm not sure this is high on the priority list
> (if you don't think so, I can make the change quicky though) :)
> 
> Back to the wd == 0 stuff, XSetBackgroundPixmap should crash but
> this is not the case with w->backgroundPixmap, which set the correct
> QWidget internals and wd if necessary.
> 
> Are straight X functions calls made usually? In KDE for example.
That wasn't my point! ;-) As Oliver already pointed out, this is also
no problem, if you define every function, that returns some external
information (like the handle), to create the window.
> 
> The good thing in the delay creation is that you don't have the
> usual overhead at the application creation (which usually creates
> all its widget tree at this moment). It's always boring to wait
> 4 or 5 seconds before getting the first window on the screen ;)
> 
Well, what do you think, will happen instead? When do you think, is the
best moment to create the X window? My test application coolos still be-
haves very strange when used with the harmony classes and I blame the
delay in big parts for that. I'm afraid to convince me from the
opposite,
at least this little program has to run fine with harmony's delaying. ;)

Greetings, Stephan

-- 
NOTE: condom may only be used with a hard disk. condom will 
terminate abnormally with exit code -1 if used with a floppy 
disk (see DIAGNOSTICS below).

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

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