Results 1 to 2 of 2

Thread: Disable TextEdit input

  1. #1
    Join Date
    Oct 2010
    Posts
    54
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Disable TextEdit input

    Hi all,

    I was wondering how to disable a textedit so the user can no longer modify the text within it, anyone know how to go about this?

    Is there also a way to disable a button (without hiding it) so the user can no longer press it?

    Thanks in advanced for your time and trouble

    Ok I've solved this. The minute i posted this I found the answer:

    Qt Code:
    1. ui->textEdit->setDisabled(true)
    To copy to clipboard, switch view to plain text mode 

    Lol

    Thanks anyway

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Disable TextEdit input

    hi,
    if you just want the user not to modify the contents, you can also use
    void setReadOnly (bool)

    Bala

Similar Threads

  1. Disable keyboard input for spinbox entry
    By babygal in forum Qt Programming
    Replies: 8
    Last Post: 2nd December 2016, 02:06
  2. textedit
    By limeir in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2010, 11:27
  3. Qt textedit input method problem. please help!
    By Scott Liu in forum Qt Programming
    Replies: 0
    Last Post: 18th January 2010, 04:10
  4. Replies: 2
    Last Post: 16th January 2010, 05:22
  5. Replies: 4
    Last Post: 31st August 2006, 13:11

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.