Results 1 to 4 of 4

Thread: Make QTextEdit accept only "OK/KO" in Pyside2

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2019
    Posts
    15
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default Make QTextEdit accept only "OK/KO" in Pyside2

    I have designed an QTreeWidget with a QTextedit as one of the widget of the QTreeWidget. I am entering status value as "OK/KO" inside the QTextEdit. I want to restrict the input in the QTextEdit only to "OK/KO" and user should be prompted by message box to enter only this two values. I am really clueless how to proceed further with this .
    Last edited by supratik; 12th November 2020 at 10:10.

Similar Threads

  1. Replies: 1
    Last Post: 20th November 2015, 11:02
  2. Linker does not accept overloaded "operator>>"
    By ZikO in forum Qt Programming
    Replies: 7
    Last Post: 1st September 2012, 00:33
  3. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  4. On MacOSX, QMessage don't accept "\n"
    By manhds in forum Qt Programming
    Replies: 7
    Last Post: 7th June 2006, 16:04

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.