![]() |
QT - Vertical Drag&Drop
Hello,
I'm wondering if there is any way (with QT) to make drag&drop available only on certain direction (vertical for example). Help/examples/links are welcome ;) |
Re: QT - Vertical Drag&Drop
Quote:
http://doc.trolltech.com/4.7/qml-mousearea.html |
Re: QT - Vertical Drag&Drop
I had problems get drag&drop working in qt, so i have written my own one.
When i push a button, a timer starts and sets geometry of the button to the position of the mouse (or finger). When i release the mousebutton, the timer stops. With this, you can make a rule that only the x or y property of the button is set to the mouse. I use this in my app, an older sourcecode is available here: svn checkout https://vcs.maemo.org/svn/drinkcounter |
Re: QT - Vertical Drag&Drop
Hi,
thanks for the info... I think I'll try to use (or adapt) the solution pointed by AndiTheBest. But maybe I can try to stylize the QSlider to have (maybe it's easier) what I need. |
All times are GMT. The time now is 12:09. |
vBulletin® Version 3.8.8