Results 1 to 1 of 1

Thread: Issue with QSlider::setTickInterval procedure

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default Issue with QSlider::setTickInterval procedure

    Hi All,

    Following code does not draw tick marks on slider control:

    Qt Code:
    1. m_pSlider->setMinimum(-2147483648) ;
    2. m_pSlider->setMaximum(2147483647) ;
    3. m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
    To copy to clipboard, switch view to plain text mode 

    But following works correctly:

    Qt Code:
    1. m_pSlider->setMinimum(-2147483648) ;
    2. m_pSlider->setMaximum(2147483646) ;
    3. //Please note: 2147483647 is changed to 2147483646
    4. m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
    To copy to clipboard, switch view to plain text mode 

    While "int" data type range is: -2147483648 to 2147483647...

    Is any one other guy facing the same issue...

    Any help would be appreciated.

    Thanks in Advance...
    Last edited by Dhaval; 16th September 2010 at 11:04.

Similar Threads

  1. Stored procedure and ODBC
    By filya in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2010, 08:40
  2. problem in using stored procedure
    By zolfaghari in forum Qt Programming
    Replies: 0
    Last Post: 15th March 2010, 08:25
  3. QSlider slot trigger issue
    By depsch in forum Newbie
    Replies: 1
    Last Post: 18th September 2009, 05:25
  4. Recommended Update Procedure
    By GimpMaster in forum Installation and Deployment
    Replies: 9
    Last Post: 28th May 2009, 22:35
  5. qt how get out parameter of Stored Procedure?
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2009, 12:22

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.