Today it has been a Qt hacking day as well as TT notifying.
The first task sent was about the smooth scrolling at Qt on itemviews. You can find the code here. Basically, run “qmake -project; qmake; make” and try to scroll with your mouse wheel… you will find that it goes pixel by pixel… oh man… no !! Now, try to modify the created “Makefile” and add the flag -DMOUSE_BETTER_SCROLLING. We need to do that workaround where you set the “smooth scrolling”, and we would like Qt to do it without any external help 🙂
The other task is about drag & drop. nefertum gave it a try some days ago in another approach of creating an ARGB window, but I also have given it a try. Right now, there are two given problems, mainly:
Now with the fix that you can see here, you can get results as this one. There is still a remaining case… the pixmap created is the size of the viewport, so we still have corner cases that should be taken in count, like this example. Qt should check if the elements that are on the viewport are completely shown or not, and in that case, forcing the pixmap set to the drag operation bigger to make every item fit in there.
The test case for the drag & drop is public here.
After bug looking and busting… I am going to have some rest 🙂 Oh, forgot I have to do some BIC changes for Friday ! 🙂