Results 1 to 6 of 6

Thread: signal for QTextEdit

  1. #1
    Join Date
    May 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Post signal for QTextEdit

    I want a signal when QTextedit got focus and rightclick editor select all is enabled.

    Whenever we right click in the editor menu, select all is disabled if editor content is empty.
    This select all i want to disable from the edit mni.Which signal help me to do like this.
    Last edited by bismitapadhy; 24th December 2009 at 07:16.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

  3. #3
    Join Date
    May 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Default Re: signal for QTextEdit

    this signal will generate whenever anything on customContext Menu changed, i want the signal only for select all.
    whenever context menu select all is enableed, i want to enable edit menu select all, when ever edit menu select all is disabled, i want to disable edit menu select all. How can ii do it, please suggest me any idea?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: signal for QTextEdit

    use QWidget::customContextMenuRequested() and QWidget::actions() to manipulate the state of actions or build your own menu inside that function.

  5. #5
    Join Date
    May 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Default Re: signal for QTextEdit

    Quote Originally Posted by Lykurg View Post
    use QWidget::customContextMenuRequested() and QWidget::actions() to manipulate the state of actions or build your own menu inside that function.
    I am beginner of Qt. can you please tell me ,if use customContextMenuRequested(Qpoint) as a signal, it is required to write our own function for slot or any default function is available?

  6. #6
    Join Date
    Sep 2009
    Location
    Tashkent, Uzbekistan
    Posts
    107
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: signal for QTextEdit

    If you need to process something custom - you have to add your own slot where you will do that and connect the signal to your custom slot.

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. Possible signal mapper problem
    By MarkoSan in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2008, 13:11
  4. Replies: 2
    Last Post: 17th May 2006, 21:01

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.