No pen cursor n Qt library
-
Hi,
The documentation at https://doc.qt.io/qt-6/qt.html#CursorShape-enum does not display Pen Shaped cursor as a possible type.I'm working with X11/Linux and want to see if there is a possibilty of getting a pen shaped cursor (for drawing program).
Thank you.
P.S.: This is surprising as it is a fairly often used cursor shape...
-
Hi,
The most simple would be for you to provide that cursor in your application.
-
Hi,
Are you saying that all those painting apps provide pen shaped cursor?
And there is nothing like it inside X11/Wayland?Thank you.
-
@oneeyeman1 said in No pen cursor n Qt library:
Are you saying that all those painting apps provide pen shaped cursor?
Why should the operating system provide application specific cursors? They must be provided by the application.
-
Hi,
Im not asking for the OS - I'm asking for the library to provide a well known cursor for re'use on different apps.Moreover, most developers are not UI designer and create some bitmap/png/upgrade is a nightmare...
Thank you.
-
@oneeyeman1 said in No pen cursor n Qt library:
I'm asking for the library to provide a well known cursor for re'use on different apps.
What is 'well known cursor'? Who defines it?
Qt is providing an abstraction to access the os cursors, nothing more and tbh I don't see why it should provide a set of some cursors for specific applications. -
Hi,
Then why do you provide all those cursor annum referenced at the link I gave in the OP?Now if you open for example Paint on Windows, it will start with the cursor represented as a pen. This pen is defined somewhere in the public Windows C/C++/Java/.NET/whatever API as well as the icon somewhere on the system.
There is also an "I-beam: cursor with the same thing except that for some reason Qt provides enum definition for the "I-beam".Is there a possibility to retrieve the pen cursor icon from X11/Wayland?
Thank you.
-
Is there a possibility to retrieve the pen cursor icon from X11/Wayland?
What pen cursor are you referring here? X11 and wayland are window managers, they don't provide cursors.
Now if you open for example Paint on Windows, it will start with the cursor represented as a pen.
Here are the cursors provided directly by windows: https://learn.microsoft.com/de-de/windows/win32/menurc/about-cursors
As you can see there is no pen - Paint is a standalone program which ships it's own cursors.
-
@Christian-Ehrlicher said in No pen cursor n Qt library:
As you can see there is no pen
Actually there is a pen icon (
MAKEINTRESOURCE(32631)
) defined inWinUser.h
, but in the second table and it says that these icons don't have a specifier because they are not in use or not standard anymore. -
Hi,
As you can see from the OP, I don't work in windows with Qt - I use Linux.
So any chance I find this icon/pixmap on Linux somewhere?Thank you.
-
@oneeyeman1 said in No pen cursor n Qt library:
So any chance I find this icon/pixmap on Linux somewhere?
If you don't check you will never know :)
Go where the icons are stored for your Linux distro...
As there was said before... if there isn't such standard icon, you have to create your own cursor set and ship it with your app... like most painting tools, games and other programs do