Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, October 1998
setMaximumSize(0,0)


Message 1 in thread

When I set the maximum size of a widget to (0,0) my program crashes with
the following error message:

X Error: BadValue (integer parameter out of range for operation) 2
  Major opcode:  12
Abort (core dumped)

Is this a bug of Qt or should I have known that setting the maximum size
of a widget to (0,0) is illegal?

-- 
 [ signature omitted ] 

Message 2 in thread

Cornelius Schumacher wrote:
>X Error: BadValue (integer parameter out of range for operation) 2
>  Major opcode:  12
>Abort (core dumped)
>
>Is this a bug of Qt or should I have known that setting the maximum size
>of a widget to (0,0) is illegal?

It's really a bug in X, but perhaps Qt should work around it.

It's a shame, because resizing to 0 is often useful.

--
 [ signature omitted ] 

Message 3 in thread

Warwick Allison <warwick@troll.no>
> Cornelius Schumacher wrote:
> >X Error: BadValue (integer parameter out of range for operation) 2
> >  Major opcode:  12
> >Abort (core dumped)
> >
> >Is this a bug of Qt or should I have known that setting the maximum size
> >of a widget to (0,0) is illegal?
> 
> It's really a bug in X, but perhaps Qt should work around it.

This was fixed some time ago, so that one will no longer get the core
dump. I'm not sure whether the fix made it into 1.41 (too busy to
check it right now); 1.42 will certainly have it.


- Eirik Aa.

-- 
 [ signature omitted ]