Results 1 to 11 of 11

Thread: Remove "Insert Unicode control character" from QTextEdit context

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: Remove "Insert Unicode control character" from QTextEdit context

    when you click the mouse on the widget, an event is risen, right?
    just catch that event (subclass and reimplement event()), and don't call the parent method.

    See:
    http://doc.trolltech.com/4.4/qwidget.html#event or http://doc.trolltech.com/4.4/qwidget...ousePressEvent

  2. #2
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    84
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5
    Thanked 5 Times in 3 Posts

    Default Re: Remove "Insert Unicode control character" from QTextEdit context

    Huh? Wouldn't I end up with no context menu at all? I'd also have to do it for every QLineEdit/QTextEdit widget in my applications.
    So, what are you using those Unicode-Control-Characters in the context menu for anyway?

  3. #3
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 8 Times in 8 Posts

    Default Re: Remove "Insert Unicode control character" from QTextEdit context

    If user has chosen OS language other than English (specially like Hebrew, Chinese or Japanese), the "Insert Unicode control character" menu item will be displayed to support some Unicode operation.
    If you will choose English as your OS language, the "Insert Unicode control character" menu item will not be displayed.
    I am using Qt 5.1 and Windows 7.

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
  •  
Qt is a trademark of The Qt Company.