-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement "slider" delegate for numeric properties #10
Comments
Perfect I would like to have something like that :) How to use it? |
I've implemented 1st draft of "SliderBox" delegate for Float property. Please try it. fillColor attribute is optional - in case you want have different colors for different properties.
|
Wow, its really cool! I will wait for mouse control. BTW: I usually work with AB late at night after work. |
Mouse wheel and mouse single click is implemented.
I also worked at night but in USA timezone. |
@kmkolasinski and @ppiecuch - I'm finished with SliderBox delegate. |
Hi, thanks I'm going to check it right now. |
Hi, for me is ok, however I will customize it a little bit to have it like I want ;) |
Hi, I'm trying to override the even implementation for mouse dragging
but I cannot force it to work with mouse dragging. It seems that all events are blocked if for example mouse is pressed. Do you know how to solve it? |
Hi, does my QtnPropertyDelegateFloatSlideBox class work? It's strange that you have troubles with event function, may be you don't call trackState() during sub item creation
May be you can just push your code in you fork of QtnProperty, so I will be able pull it and debug. Anyway I'm planning to generalize this delegate to be basis for all numeric properties Int, Uint, Double, Float. And polish it a bit. |
@kmkolasinski - I've stabilize QtnPropertyDelegateSlideBox code. |
Hi,
|
Hi, my last anwser is about your question from yesterday :) Not this:
|
I just add one line of QDebug() in the event function to see what kind of events are catched, |
Did you copied all other files? There are huge modifications in PropertyDelegate.h/cpp; PropeetyView.h/cpp and other files
I mean you can "play" with my modifications in you fork of QtnProperty project. It's independent from AB project. So you can easily push and debug code there. |
No I just created separate class file copying the QtnPropertyDelegateSlideBox class which I then called QtnPropertyDelegateABFloatSlider class, the content is exactly the same as QtnPropertyDelegateSlideBox class but I started to play with event method, to see what I can change or not.
Yes you are right. |
Now you can find QtnPropertyDelegateSlideBox class in PropertyDelegate.h file.
|
Great I will pull the code and try it later ! Thanks! |
OK I'm finished for now. Just play with new code in QtnProperty and push your modifications, so I will be able to help you. Bye |
Ok, thanks again. |
OMG, this new one is perfect :) Thanks! |
Something like in the GIMP
![image](https://cloud.githubusercontent.com/assets/6108224/12427194/0a67b1dc-be9b-11e5-88a4-ca1b0595d002.png)
The text was updated successfully, but these errors were encountered: