Results 1 to 5 of 5

Thread: QDial

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default QDial

    HI, I see my the myDial arrow is set at postion as hours 7 (at startup); is it possible set it to midnight? thanks
    Regards

  2. #2
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDial

    Qt Code:
    1. QDial myDial = new QDial(parent);
    2. // Your min & max value settings
    3. myDial->setValue((myDial->maxValue() - myDial->minValue()) / 2);
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: QDial

    this set arrow to midnight, but isn't the the value 0; I connected a lcdnumber that shows value 90....
    Regards

  4. #4
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDial

    Oh, so the problem is that you want your dial to be a kind of turned clockwise? So that its starting position was midnight and not 7 o'clock while the value set to zero?

  5. #5
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: QDial

    Quote Originally Posted by Cesar
    Oh, so the problem is that you want your dial to be a kind of turned clockwise? So that its starting position was midnight and not 7 o'clock while the value set to zero?
    I don't have to have a clock; simply: i'd like set arrow position and its value (why myDial at start up is on 7 o'clock? is it possible control this?)
    Regards

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.