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. QIntValidator again
Qt 6.11 is out! See what's new in the release blog

QIntValidator again

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 192 Views 2 Watching
  • 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    I've read all the posts here justifying why code like this:

    				QComboBox* editor = new QComboBox(parent);
    				editor->addItems(isos);
    				editor->setEditable(true);
    				editor->setValidator(new QIntValidator(1, 256000, parent));
    				return editor;
    

    won't work as expected. IMHO, that just doesn't wash. It should work the way that a user would expect and if it doesn't you need to do things to make it work as expected.

    If you need specialised code in QLineEdit and QComboBox to make the validator work sanely, then please add it. Just saying that can't work because of intermediate values is trying to wriggle out of fixing the problem.

    IMHO of course.
    David

    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