Hi guys,
I would like to ask how to create a, lets say, red cursor? I have my own red crosscursor pixmap, but the QCursor looks as supports only black/white/transparent colors.
Thanks for any advice.
Kacper
Hi guys,
I would like to ask how to create a, lets say, red cursor? I have my own red crosscursor pixmap, but the QCursor looks as supports only black/white/transparent colors.
Thanks for any advice.
Kacper
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Looks like you are right, at least according to the documentation.
This suggests full color cursors are not supported on other platforms. It might be a documentation flaw, though.On X11, Qt supports the Xcursor library, which allows for full color icon themes
Hi,
THanks. This topic sounds a bit similar to the "red button" problem. It's less problematic thought. : )
Ok, thanks for the comment.
Kacper
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Coloured cursors should be available on all platforms, as when you drag an object, you can set a pixmap as a representation of the drag and it works on all platforms, as far as I know, so there are ways to have coloured cursors. Try peeking Qt's sources to find out more.
I can always create an item representing the cursor and move it as needed, but was looking for a "typical" solution : )
Thanks
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Bookmarks