View Full Version : QSlider
merry
22nd June 2007, 08:16
Hi all
Can anybody guides me , Is there anyway to make double sided slider in Qt4.2.
That is there are 2 pointers in the sliders so that we can drag it frm both the sides i.e from right as welll as left.
Thanx
wysota
22nd June 2007, 08:41
Take a look at http://libqxt.sourceforge.net. AFAIR it contains a double head slider.
merry
22nd June 2007, 08:48
Thanks fo the help
But What is AFAIR...
merry
22nd June 2007, 09:00
Wysota
In which Zone It contains double headed Slider.
Thanx
merry
22nd June 2007, 12:31
Hi Wysota
Take a look at http://libqxt.sourceforge.net. AFAIR it contains a double head slider.
The above Link u sent to me of "QExtensionLibrary ", can be used in Qt4.1 .
And also tell me How to use this Extension Library in Qt4.1.
Thanx
wysota
23rd June 2007, 13:03
But What is AFAIR...
"As far as I remember"
The above Link u sent to me of "QExtensionLibrary ", can be used in Qt4.1 .
So? You wanted to know how to implement a double headed slider. Take the sources and implement it for Qt3.
http://libqxt.sourceforge.net/docs/classQxtSpanSlider.html
And also tell me How to use this Extension Library in Qt4.1.
Link against it.
merry
25th June 2007, 05:58
So? You wanted to know how to implement a double headed slider. Take the sources and implement it for Qt3.
Yaa I wanted to implement a double headed slider in Qt4.1, Which sources should I take.
to implement it.
And also tell me How to use this Extension Library in Qt4.1.
Link against it.
Which link?
merry
25th June 2007, 07:42
Hi all
Is there anyone who guides me , how to make double headed Slider in Qt4.1
Pls help if anybody knows about it .
Thanx
:confused:
wysota
25th June 2007, 08:09
Yaa I wanted to implement a double headed slider in Qt4.1, Which sources should I take.
to implement it.
I don't understand... Compile libqxt and use it...
http://libqxt.sourceforge.net/docs/classQxtSpanSlider.html
This is what you want, right?
Which link?
Link against the libqxt library!
Hi. Unfortunately the version of QxtSpanSlider (http://jpnurmi.kapsi.fi/docs/classQxtSpanSlider.html) in libqxt svn trunk is pretty immature. Here are links to revised files:
qxtspanslider.h (http://libqxt.svn.sourceforge.net/viewvc/libqxt/sandbox/jpnurmi/include/qxtspanslider.h?view=markup)
qxtspanslider_p.h (http://libqxt.svn.sourceforge.net/viewvc/libqxt/sandbox/jpnurmi/src/widgets/qxtspanslider_p.h?view=markup)
qxtspanslider.cpp (http://libqxt.svn.sourceforge.net/viewvc/libqxt/sandbox/jpnurmi/src/widgets/qxtspanslider.cpp?view=markup)
They will get merged back to the development branch after certain build system issues have been solved.
merry
25th June 2007, 09:48
Hi
I m working on Qt4.1 on Intel MAC machine
Is it possible to install libqxt on MAC Operating System
Actually I tried to install libqxt
and when I make the file I got errors.
make[1]: *** [QxtApplication_x11.o] Error 1
make: *** [sub-src_gui-make_default] Error 2
pls tell me what should i do now.
wysota
25th June 2007, 10:03
Did you run configure first?
merry
25th June 2007, 10:06
Yes I run configure first.
Is it possible to install libqxt on MAC Operating System
I'm afraid it's not because nobody in the development team has a Mac.
pls tell me what should i do now.
I suggest you take the class, remove unnecessary includes and export macros and include it directly to your project. See the attachment.
merry
25th June 2007, 10:26
Thanx
I ' ll try this...
merry
25th June 2007, 10:41
Thanx 4 d soln.
I tried it
It works but shows Vertical Slider and the two heads on it also cross each other, I dont even understand how it works,
But I m trying to understand it...
It works but shows Vertical Slider and the two heads on it also cross each other, I dont even understand how it works,
But I m trying to understand it...
QxtSpanSlider (http://jpnurmi.kapsi.fi/docs/classQxtSpanSlider.html) inherits QSlider so you can make it horizontal in the same way. Either pass Qt::Horizontal to the constructor or use QAbstractSlider::setOrientation() (http://doc.trolltech.com/4.3/qabstractslider.html#orientation-prop).
Lower boundary value of the span:
QxtSpanSlider::lowerValue() - returns the lower boundary of the span
QxtSpanSlider::setLowerValue(int lower) - sets the lower boundary of the span
QxtSpanSlider::lowerValueChanged(int lower) - a signal which is emitted whenever the lower boundary of the span changes
Upper boundary value of the span:
QxtSpanSlider::upperValue() - returns the upper boundary of the span
QxtSpanSlider::setUpperValue(int lower) - sets the upper boundary of the span
QxtSpanSlider::lowerUpperChanged(int lower) - a signal which is emitted whenever the upper boundary of the span changes
In addition, QxtSpanSlider (http://jpnurmi.kapsi.fi/docs/classQxtSpanSlider.html) provides QxtSpanSlider::setSpan(int lower, int upper) and QxtSpanSlider::spanChanged(int lower, int upper).
merry
26th June 2007, 14:34
Hi
How Can I add QSpinBox in the file "QxtSpanSlider" u had given me yesterday ,for showing lower head and upper head values in the spinboxes.
Thanx
How Can I add QSpinBox in the file "QxtSpanSlider" u had given me yesterday ,for showing lower head and upper head values in the spinboxes.
Do you mean how to connect corresponding signals and slots?
connect(lowerSpinBox, SIGNAL(valueChanged(int)), spanSlider, SLOT(setLowerValue(int)));
connect(upperSpinBox, SIGNAL(valueChanged(int)), spanSlider, SLOT(setUpperValue(int)));
connect(spanSlider, SIGNAL(lowerValueChanged(int)), lowerSpinBox, SLOT(setValue(int)));
connect(spanSlider, SIGNAL(upperValueChanged(int)), upperSpinBox, SLOT(setValue(int)));
merry
27th June 2007, 05:46
Thanx jpn
But I knw how to connect QSPinBox and Sliders.
Actuallly I want to know how to add QSpinBoxes in the module that is given by you For QExtSpanSlider.
Thanx
Actuallly I want to know how to add QSpinBoxes in the module that is given by you For QExtSpanSlider.
Sorry, I don't understand what do you mean. Could you rephrase, please?
merry
27th June 2007, 06:16
Actually I want that Where the double headed Slider is shown ,there only On the same widget the Spinboxes Should be shown ,
I mean how can I view QSpinBoxes on the same widget where QextSpanSlider is shown..
How can i do this Wheather i should make a diff class for QSpinboxes or use it in the same class that is for QExtSpanSlider...
Hope so ,now u understand what i wanted to say......
Thanx
merry
27th June 2007, 07:42
Thanx to all
My Problem is solved
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.