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. How to avoid user from entering special characters into QTableWidget Cell
QtWS25 Last Chance

How to avoid user from entering special characters into QTableWidget Cell

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.6k 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.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    Hi All

    How to avoid user from entering special characters into QTableWidget Cell?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Get control over the editor widget that is used, and you can determine for yourself which characters are accepted. One way is to create your own QAbstractItemDelegate subclass, another is to use QItemEditorFactory and set the factory to use on an existing delegate. You can create your own line edit class with all the input filters you need.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KA51O
        wrote on last edited by
        #3

        isn't that just like "this":http://developer.qt.nokia.com/forums/viewthread/10858/ ?

        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