views:

591

answers:

2

I'm checking if it would be possible to implement a GUI using HTML through PyQT and WebKit. One of the problem is that using the mouse you can select the text making up the interface. Can this behaviour be disabled?

Also, the mouse pointer changes to an insertion caret while over the selectable text. I would like to disable this, without disabling the hand mouse pointer which appears when over a clickable link.

+1  A: 

You can use javascript to "return false" on the start selection event in order to disable the text selection.

gozman
Worked for me :).
Kerry
A: 

Check this answer in a related question about disabling text selection in WebKit!

Mihai Alexandru Bîrsan
I tried it, didn't work
Adal