Results 1 to 3 of 3

Thread: suggestion for hand drag QProgressBar

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default suggestion for hand drag QProgressBar

    Hello friends,

    I need experts suggestion of how i can create a QProgressBar where i can click , drag and move the filling using mouse ..

    more to say i can change the progressbar value using the mouse as i click and drag ...
    i need peoples suggestion for the best way i can implement ..

    Thanks in advance ..
    "Behind every great fortune lies a crime" - Balzac

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

    Default Re: suggestion for hand drag QProgressBar

    The easiest way is to just use QSlider, possibly with custom painting (or stylesheets). An alternative is to subclass QProgressBar and reimplement its mouse events to update the progress as the mouse position changes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    wagmare (28th September 2012)

  4. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default Re: suggestion for hand drag QProgressBar

    Thanks !!

    Right now im reimplementing the mouse events of QprogressBar .. yes im doing right !!
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. How Hand the close button in MainWindow
    By phuong_90 in forum Qt Programming
    Replies: 4
    Last Post: 25th October 2011, 10:25
  2. Hand Drawing in Qt
    By Nasrudin in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2010, 08:19
  3. Adding QPushButton to *.ui file by hand
    By s410i in forum Qt Programming
    Replies: 3
    Last Post: 23rd June 2009, 13:08
  4. QT Designer? Coding by hand?
    By lewis in forum Qt Tools
    Replies: 47
    Last Post: 2nd April 2007, 16:30
  5. Qt Designer or writing by hand
    By luf in forum Qt Tools
    Replies: 3
    Last Post: 12th March 2007, 12:31

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
  •  
Qt is a trademark of The Qt Company.