Qt-interest Archive, April 2007
setPaletteBackgroundPixmap error
Message 1 in thread
hi,
i am using setPaletteBackgroundPixmap to set image on form , just like
fm->setPaletteBackgroundPixmap(QPixmap("aaaa.jpg"));
it will work fine.
but sometimes it will give error like
X-error: Badlength(Poly request too large or internal xlib length error)16
major opcode=6
minor opcode=0
Resource id: 0x1a00007
and get segmentation fault.
i am using qt-3.1 and o.s is Fedora core-3.
Is this problem related to qt or related to X??
Can anybody tell me, how to resolve this problem. Is there any other
method to set jog image on form??
Thanks and regards,
Niranjan.
--
[ signature omitted ]
Message 2 in thread
Hi,
niranjank@xxxxxxxxxxxx escribió:
> i am using setPaletteBackgroundPixmap to set image on form , just like
>
> fm->setPaletteBackgroundPixmap(QPixmap("aaaa.jpg"));
>
>
> it will work fine.
>
> but sometimes it will give error like
>
>
> X-error: Badlength(Poly request too large or internal xlib length error)16
> major opcode=6
> minor opcode=0
> Resource id: 0x1a00007
>
Can you tell us what size is the image you're using?
Are you sure this image is avaliable from the path you're giving it? if
you use QPixmap("aaaa.jpg"), the "aaaa.jpg" image must be on the same
directory as your application.
> and get segmentation fault.
>
> i am using qt-3.1 and o.s is Fedora core-3.
>
> Is this problem related to qt or related to X??
>
Regards,
Javier
--
[ signature omitted ]
Message 3 in thread
hi,
Thnaks for your quick response.
Image path is OK. Image Size is 40K.
In my project, when event comes image will set. It will work fine
but sometimes
it will give error
Thanks and Regards,
Niranjan
> Hi,
> niranjank@xxxxxxxxxxxx escribió:
>> i am using setPaletteBackgroundPixmap to set image on form , just like
>>
>> fm->setPaletteBackgroundPixmap(QPixmap("aaaa.jpg"));
>>
>>
>> it will work fine.
>>
>> but sometimes it will give error like
>>
>>
>> X-error: Badlength(Poly request too large or internal xlib length
>> error)16
>> major opcode=6
>> minor opcode=0
>> Resource id: 0x1a00007
>>
> Can you tell us what size is the image you're using?
> Are you sure this image is avaliable from the path you're giving it? if
> you use QPixmap("aaaa.jpg"), the "aaaa.jpg" image must be on the same
> directory as your application.
>> and get segmentation fault.
>>
>> i am using qt-3.1 and o.s is Fedora core-3.
>>
>> Is this problem related to qt or related to X??
>>
> Regards,
> Javier
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
--
[ signature omitted ]
Message 4 in thread
hi!
On Tuesday 10 April 2007 15:07, niranjank@xxxxxxxxxxxx wrote:
> hi,
>
> In my project, when event comes image will set. It will work fine
> but sometimes
> it will give error
do YOU process this operation in Qt thread?
I've have error like this when I make pause for 0:) and system was hang.
May your events have very small period?
>
>
> Thanks and Regards,
> Niranjan
>
> > Hi,
> >
> > niranjank@xxxxxxxxxxxx escribiÃ:
> >> i am using setPaletteBackgroundPixmap to set image on form , just like
> >>
> >> fm->setPaletteBackgroundPixmap(QPixmap("aaaa.jpg"));
> >>
> >>
> >> it will work fine.
> >>
> >> but sometimes it will give error like
> >>
> >>
> >> X-error: Badlength(Poly request too large or internal xlib length
> >> error)16
> >> major opcode=6
> >> minor opcode=0
> >> Resource id: 0x1a00007
> >
> > Can you tell us what size is the image you're using?
> > Are you sure this image is avaliable from the path you're giving it? if
> > you use QPixmap("aaaa.jpg"), the "aaaa.jpg" image must be on the same
> > directory as your application.
> >
> >> and get segmentation fault.
> >>
> >> i am using qt-3.1 and o.s is Fedora core-3.
> >>
> >> Is this problem related to qt or related to X??
> >
> > Regards,
> > Javier
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 5 in thread
Hi,
No it is not in any thread.
setPalattebackgroundPixmap is in one slot. when i want to show image , i
will call the slot.
Thanks and Regards,
Niranjan.
> hi!
>
> On Tuesday 10 April 2007 15:07, niranjank@xxxxxxxxxxxx wrote:
>> hi,
>>
>> In my project, when event comes image will set. It will work fine
>> but sometimes
>> it will give error
> do YOU process this operation in Qt thread?
>
> I've have error like this when I make pause for 0:) and system was hang.
> May your events have very small period?
>
>>
>>
>> Thanks and Regards,
>> Niranjan
>>
>> > Hi,
>> >
>> > niranjank@xxxxxxxxxxxx escribió:
>> >> i am using setPaletteBackgroundPixmap to set image on form , just
>> like
>> >>
>> >> fm->setPaletteBackgroundPixmap(QPixmap("aaaa.jpg"));
>> >>
>> >>
>> >> it will work fine.
>> >>
>> >> but sometimes it will give error like
>> >>
>> >>
>> >> X-error: Badlength(Poly request too large or internal xlib length
>> >> error)16
>> >> major opcode=6
>> >> minor opcode=0
>> >> Resource id: 0x1a00007
>> >
>> > Can you tell us what size is the image you're using?
>> > Are you sure this image is avaliable from the path you're giving it?
>> if
>> > you use QPixmap("aaaa.jpg"), the "aaaa.jpg" image must be on the same
>> > directory as your application.
>> >
>> >> and get segmentation fault.
>> >>
>> >> i am using qt-3.1 and o.s is Fedora core-3.
>> >>
>> >> Is this problem related to qt or related to X??
>> >
>> > Regards,
>> > Javier
>> >
>> > --
>> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> > "unsubscribe" in the subject or the body.
>> > List archive and information: http://lists.trolltech.com/qt-interest/
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> "unsubscribe" in the subject or the body. List archive and information:
>> http://lists.trolltech.com/qt-interest/
>
> --
> С Ñ?важением,
> Ð?анаÑ?ин Ð?.Ð?.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
--
[ signature omitted ]