Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: QSlider

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QSlider

    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
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSlider

    Take a look at http://libqxt.sourceforge.net. AFAIR it contains a double head slider.

  3. #3
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    Thanks fo the help

    But What is AFAIR...
    Always Believe in Urself
    Merry

  4. #4
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Smile Re: QSlider

    Wysota

    In which Zone It contains double headed Slider.

    Thanx
    Always Believe in Urself
    Merry

  5. #5
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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
    Last edited by merry; 22nd June 2007 at 12:33. Reason: reformatted to look better
    Always Believe in Urself
    Merry

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSlider

    Quote Originally Posted by merry View Post
    But What is AFAIR...
    "As far as I remember"

    Quote Originally Posted by merry View Post
    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/c...panSlider.html

    And also tell me How to use this Extension Library in Qt4.1.
    Link against it.

  7. #7
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider


    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?
    Always Believe in Urself
    Merry

  8. #8
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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
    Always Believe in Urself
    Merry

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSlider

    Quote Originally Posted by merry View Post
    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/c...panSlider.html
    This is what you want, right?

    Which link?
    Link against the libqxt library!

  10. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSlider

    Hi. Unfortunately the version of QxtSpanSlider in libqxt svn trunk is pretty immature. Here are links to revised files:

    They will get merged back to the development branch after certain build system issues have been solved.
    J-P Nurmi

  11. #11
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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.
    Last edited by merry; 25th June 2007 at 09:56. Reason: spelling error
    Always Believe in Urself
    Merry

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSlider

    Did you run configure first?

  13. #13
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    Yes I run configure first.
    Always Believe in Urself
    Merry

  14. #14
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSlider

    Quote Originally Posted by merry View Post
    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.
    Attached Files Attached Files
    J-P Nurmi

  15. The following user says thank you to jpn for this useful post:

    merry (25th June 2007)

  16. #15
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    Thanx

    I ' ll try this...
    Always Believe in Urself
    Merry

  17. #16
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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...
    Always Believe in Urself
    Merry

  18. #17
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSlider

    Quote Originally Posted by merry View Post
    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 inherits QSlider so you can make it horizontal in the same way. Either pass Qt::Horizontal to the constructor or use QAbstractSlider::setOrientation().

    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 provides QxtSpanSlider::setSpan(int lower, int upper) and QxtSpanSlider::spanChanged(int lower, int upper).
    J-P Nurmi

  19. #18
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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
    Always Believe in Urself
    Merry

  20. #19
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSlider

    Quote Originally Posted by merry View Post
    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?
    Qt Code:
    1. connect(lowerSpinBox, SIGNAL(valueChanged(int)), spanSlider, SLOT(setLowerValue(int)));
    2. connect(upperSpinBox, SIGNAL(valueChanged(int)), spanSlider, SLOT(setUpperValue(int)));
    3. connect(spanSlider, SIGNAL(lowerValueChanged(int)), lowerSpinBox, SLOT(setValue(int)));
    4. connect(spanSlider, SIGNAL(upperValueChanged(int)), upperSpinBox, SLOT(setValue(int)));
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  21. #20
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QSlider

    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
    Always Believe in Urself
    Merry

Similar Threads

  1. Problems customizing QSlider
    By Antrax in forum Qt Programming
    Replies: 13
    Last Post: 20th December 2011, 07:00
  2. 4.3: Styling vertical QSlider
    By Angelo Moriconi in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2007, 16:04
  3. QSlider Update Problem
    By December in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2006, 04:02
  4. QSlider with double Heads..
    By moizahamedv in forum Qt Tools
    Replies: 5
    Last Post: 9th May 2006, 14:28
  5. Video and QSlider
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 1st May 2006, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.