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

Qt-interest Archive, April 2008
Problems with editor widgets


Message 1 in thread

Hello all,

I'm using qt 4.3 in a debian box on x86_64 and on a virtual windows box. 
I'm developing a medium sized application, and I'm having some problems 
with some widgets that simply don't display correctly.

On linux they simply don't show the caret (for qlineedit for example) and 
they stay "highlighted" forever. But on windows they don't show at all, 
or they show just parts of it, like the spinbox, that doesn't paint the 
border neither the buttons.

The widgets causing troubles are mapped to a qwidgetdatamapper, and 
that's all I can say, since I don't really know when the problem started 
because Ijust noticed it recently.

I'm very new to qt, and some help would be greatly apreciated.

Thank's in advance, cheers
HernÃni

--
 [ signature omitted ] 

Message 2 in thread

Tue, 15 Apr 2008 16:04:36 +0000, HernÃni Cerqueira escreveu:

> Hello all,
> 
> I'm using qt 4.3 in a debian box on x86_64 and on a virtual windows box.
> I'm developing a medium sized application, and I'm having some problems
> with some widgets that simply don't display correctly.
> 
> On linux they simply don't show the caret (for qlineedit for example)
> and they stay "highlighted" forever. But on windows they don't show at
> all, or they show just parts of it, like the spinbox, that doesn't paint
> the border neither the buttons.
> 
> The widgets causing troubles are mapped to a qwidgetdatamapper, and
> that's all I can say, since I don't really know when the problem started
> because Ijust noticed it recently.
> 
> I'm very new to qt, and some help would be greatly apreciated.
> 
> Thank's in advance, cheers
> HernÃni

Found it, the problem was with a event filter...

--
 [ signature omitted ] 

Message 3 in thread

Create a small compilable example that shows the problem. (Most likely, while stripping down your application, you'll notice that the problem goes away. That's the step where you can isolate what went wrong.) Possibly some "gone wild" pointer that is overwriting memory that doesn't belong to it. 
I've never heard of problems like you describe there, so i suspect it's not really a Qt problem, but rather a side-effect of an unrelated bug in your code.

Cheers,
Peter

> -----Ursprüngliche Nachricht-----
> Von: Hernâni Cerqueira [mailto:hrcerqueira@xxxxxxxxx] 
> Gesendet: Dienstag, 15. April 2008 18:05
> An: qt-interest@xxxxxxxxxxxxx
> Betreff: Problems with editor widgets
> 
> Hello all,
> 
> I'm using qt 4.3 in a debian box on x86_64 and on a virtual 
> windows box. 
> I'm developing a medium sized application, and I'm having 
> some problems 
> with some widgets that simply don't display correctly.
> 
> On linux they simply don't show the caret (for qlineedit for 
> example) and 
> they stay "highlighted" forever. But on windows they don't 
> show at all, 
> or they show just parts of it, like the spinbox, that doesn't 
> paint the 
> border neither the buttons.
> 
> The widgets causing troubles are mapped to a qwidgetdatamapper, and 
> that's all I can say, since I don't really know when the 
> problem started 
> because Ijust noticed it recently.
> 
> I'm very new to qt, and some help would be greatly apreciated.
> 
> Thank's in advance, cheers
> Hernâni
> 
> --
> 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 ]