Results 1 to 3 of 3

Thread: picking geometry in qt custom widgets

  1. #1
    Join Date
    Mar 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default picking geometry in qt custom widgets

    Hi,
    I was wondering if there is any way to pick geometries that are drawn on the custom widgets. I would like to be able to pick a line that is drawn on custom widgets just the way it is done in OpenGL. i.e. I would like to be able to pass the names and get a list of names of the geometries that got clicked instead of me having to keep track of the clicking myself.
    If it is not already there in Qt, It would be a very nice addition and very helpfull for people writing custom widgets.
    Thanks,
    Sunil

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: picking geometry in qt custom widgets

    You can use QGraphicsView for that.

  3. #3
    Join Date
    Mar 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: picking geometry in qt custom widgets

    Thanks!
    Sunil

Similar Threads

  1. Drawing standard widgets using a custom paint engine
    By Waywocket in forum Qt Programming
    Replies: 26
    Last Post: 21st October 2010, 20:40
  2. QScrollArea With Custom Widgets
    By VireX in forum Qt Programming
    Replies: 30
    Last Post: 22nd April 2007, 16:48
  3. create custom widgets
    By nimmyj in forum General Discussion
    Replies: 1
    Last Post: 20th November 2006, 08:24
  4. Global includes with designer custom widgets
    By mab in forum Qt Programming
    Replies: 2
    Last Post: 5th October 2006, 22:06
  5. container populated with custom widgets
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 16th April 2006, 21:02

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.