[Qt-interest] detecting tablet pen rocker buttons in Qt 4 Linux

Jeffery MacEachern j.maceachern at gmail.com
Sat Dec 4 23:41:16 CET 2010


Does the tablet still work properly on the same computer with other
applications, such as GIMP?  For that matter, can you tell me which
tablet model, driver/Xorg version, and distro (and distro version)
you're using?  They can sometimes be a bit fiddly to set up, and I
have some small experience in the matter.

Cheers,
 - Jeffery MacEachern



On Fri, Dec 3, 2010 at 06:09, Paul Miller <paul at fxtech.com> wrote:
> On 12/2/2010 3:44 PM, Jeffery MacEachern wrote:
>> I've never actually tried this with my own code, but I have
>> successfully used my Wacom Bamboo pen in this way with Qt-based
>> applications, so it should be doable.
>
> Yes, I agree it should be doable. In fact it works properly on Windows,
> but I think the driver itself is converting the rocker buttons into
> mouse events before it even hits Qt.
>
> This doesn't seem to be happening on Linux. However, it worked as
> expected with Qt 3.
>
>>   - Jeffery MacEachern
>>
>>
>>
>> On Thu, Dec 2, 2010 at 13:11, Paul Miller<paul at fxtech.com>  wrote:
>>> Something seems to have changed between Qt 3 and 4. Now, there is no way
>>> to detect whether a rocker/side button on a Wacom pen has been pressed.
>>> It treats this as a normal TabletPress event, but pressure is 0.
>>>
>>> I want to treat one of the rocket buttons as a Right Mouse Button and
>>> the other as a Middle Mouse Button.
>>>
>>> Can this be made to work?
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list