Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QSpinBox ignores minimum/maximum limits

[SOLVED] QSpinBox ignores minimum/maximum limits

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xolve
    wrote on last edited by
    #1

    I was following this example: http://doc.qt.digia.com/stable/itemviews-spinboxdelegate.html

    Problems I face is that

    1. QSpinbox minimum/maximum values are not respected and I can set them to any value.

    2. qDebug() messages in SpinBoxDelegate::createEditor() are not printed.

    Edit: Was my bad, missed setting delegate in the view, working fine now. Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved