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. qLineEdit Max Hexadecimal nummer 1FF
Forum Updated to NodeBB v4.3 + New Features

qLineEdit Max Hexadecimal nummer 1FF

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

    Hello Folks, please, could you help me to take a maximun Headecimal nummer with QLineEdit?

    I know this, for decimal:

    chA = new QLineEdit(this);
    chA->setValidator(new QIntValidator(0,55,this));
    

    but... For Hexadecimal?

    Any Idea will be wellcomed.
    Thanks in advance.

    Joel BodenmannJ 1 Reply Last reply
    0
    • yczoY yczo

      Hello Folks, please, could you help me to take a maximun Headecimal nummer with QLineEdit?

      I know this, for decimal:

      chA = new QLineEdit(this);
      chA->setValidator(new QIntValidator(0,55,this));
      

      but... For Hexadecimal?

      Any Idea will be wellcomed.
      Thanks in advance.

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by Joel Bodenmann
      #2

      I guess in this case you have to create a custom subclass of QValidator. The documentation explains how to do this.

      Hope that helps.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      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