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
Forum Updated to NodeBB v4.3 + New Features

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 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.
  • I Offline
    I Offline
    Indrajeet
    wrote on 7 Nov 2011, 10:42 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 7 Nov 2011, 11:08 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 7 Nov 2011, 12:04 last edited by
        #3

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

        1 Reply Last reply
        0

        1/3

        7 Nov 2011, 10:42

        • Login

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