Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to avoid user from entering special characters into QTableWidget Cell

    General and Desktop
    3
    3
    2440
    Loading More Posts
    • 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
      Indrajeet last edited by

      Hi All

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

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        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 Reply Quote 0
        • K
          KA51O last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post