Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

Mouse cursor not visible under QT widgetset

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

When I compile the IDE using the Qt (4.3) widgetset, I do not see the edit cursor in the editor. My color scheme is with a black background as can be seen in most of the screenshots in the following wiki page.

http://wiki.lazarus.freepascal.org/New_IDE_features_since

Is this a known issue it Qt? Under GTK2 (as shown in the screenshots) I believe the cursor color was an XOR of the background.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to zeljko
zeljko wrote
Yes, anyway there's no chance too see that for qt-4.3 (no pen raster ops inside qt-4.3).

That is pretty unbelievable that qt got all the way up to v4.3 lacking such a feature. But you are correct, running other Qt based apps, the cursor is always painted in black. :-(

Hey, fpGUI has a feature Qt doesn't! ;-)

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to Graeme Geldenhuys: I guess it is a known issue - it was reported by me. Oops. :-)…
Graeme Geldenhuys wrote 7 lines
Graeme Geldenhuys wrote: > Is this a known issue it Qt? Under GTK2 (as shown in the screenshots) > I believe the cursor color was an XOR of the background. I guess it is a known issue - it was reported by me. Oops. :-) http://bugs.freepascal.org/view.php?id=11599

Fixed in r 20603 (but you have to update your qt. Qt-4.5.0 is minimum requirement for raster ops).

Reply by email

zeljko
to Graeme Geldenhuys: That is pretty unbelievable that qt got all the way up to v4.3 lacking such a feature.…
Graeme Geldenhuys wrote 9 lines
zeljko wrote: > Yes, anyway there's no chance too see that for qt-4.3 (no pen raster ops > inside qt-4.3). That is pretty unbelievable that qt got all the way up to v4.3 lacking such a feature. But you are correct, running other Qt based apps, the cursor is always painted in black. :-( Hey, fpGUI has a feature Qt doesn't! ;-)

It have in 4.5, and your issue is resolved ... just upgrade to 4.5 and that's it :)

Reply by email

zeljko
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 5 lines
zeljko schrieb: > Yes, anyway there's no chance too see that for qt-4.3 (no pen raster ops > inside qt-4.3). Does qt not have a notion of a caret?

no, QTextLayout->drawCursor() does the job for text input widgets.

Reply by email