Results 1 to 6 of 6

Thread: Which signal is emitted when space bar pressed ?

  1. #1
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Post Which signal is emitted when space bar pressed ?

    Hi,

    Could you tell me which signal is emitted when a space bar is pressed in the QTreeWidget ?

    Thanks,
    *npc*

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Which signal is emitted when space bar pressed ?

    There is no such signal. You can
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Which signal is emitted when space bar pressed ?

    I think that itemActivated() might be emitted pointing to the current item.

  4. #4
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which signal is emitted when space bar pressed ?

    Quote Originally Posted by jpn View Post
    There is no such signal. You can
    If there is no signal, How the checkbox related to that item is checked ?

    Is there anyway to get a signal when a checkbox status changed ?

  5. #5
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which signal is emitted when space bar pressed ?

    Quote Originally Posted by wysota View Post
    I think that itemActivated() might be emitted pointing to the current item.
    No itemActivated() signal is emitted when enter button is pressed.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Which signal is emitted when space bar pressed ?

    Quote Originally Posted by npc View Post
    If there is no signal, How the checkbox related to that item is checked ?
    The widget handles that.

    Is there anyway to get a signal when a checkbox status changed ?
    You'll get an itemChanged() signal.

Similar Threads

  1. Replies: 2
    Last Post: 17th May 2006, 21:01
  2. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.