Results 1 to 2 of 2

Thread: How to find if QDial was rotated clockwise or anticlockwise

  1. #1
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to find if QDial was rotated clockwise or anticlockwise

    Hi,

    Is there any way by which I can detect if QDial (with wrapped property set to true) was rotated clockwise or anticlockwise?

    Thanks,
    dpatel

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: How to find if QDial was rotated clockwise or anticlockwise

    I _think_ this way: Keep track of its value whenever you get sliderMoved() and see whether they go up or down. Unlike valueChanged(), you can track the movement, just remembering to check the possible jump from max to min value.

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

    dpatel (22nd November 2011)

Similar Threads

  1. QGraphicsTextItem sharpness when rotated
    By martinn in forum Qt Programming
    Replies: 3
    Last Post: 26th February 2010, 12:13
  2. drawing series of rotated ellipses
    By qtn00b in forum Newbie
    Replies: 1
    Last Post: 17th December 2009, 01:51
  3. QGraphicsView, OpenGL & rotated text
    By anthon in forum Qt Programming
    Replies: 8
    Last Post: 5th December 2009, 17:05
  4. How draw a rotated text in a QPainterPath?
    By iw2nhl in forum Qt Programming
    Replies: 6
    Last Post: 17th August 2007, 18:55
  5. rotated labels
    By jayw710 in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2006, 17:47

Tags for this Thread

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.