Results 1 to 3 of 3

Thread: setting focus to the grid items on click on it.

  1. #1
    Join Date
    Jan 2009
    Posts
    13
    Qt products
    Qt4

    Lightbulb setting focus to the grid items on click on it.

    Dear All,
    I am trying to set focus on the images in the grid as the user clicks on each picture .
    How can I obtain this.
    Information on this would be helpful.

    I tried using setFocus() API but it is not working.
    need help on this..

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting focus to the grid items on click on it.

    I am trying to set focus on the images in the grid as the user clicks on each picture .
    What are you using to display the images ? QLabel, custom widget, etc ?
    And how do you intend to see the focus on image ? Usually in icons in listwidget, etc, the pixmap is rendered with additional layer of highlight color. Is this what you want ?

  3. #3
    Join Date
    Jan 2009
    Posts
    13
    Qt products
    Qt4

    Default Re: setting focus to the grid items on click on it.

    I am using Qlabel to display the image.
    and I just want the identification in any way for the user that he has clicked it.Thtats what I meant by focus.

Similar Threads

  1. Replies: 0
    Last Post: 25th February 2009, 07:15
  2. Items in QListView should sort on Header Click
    By vinnu in forum Qt Programming
    Replies: 14
    Last Post: 10th November 2006, 12:49

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.