Results 1 to 4 of 4

Thread: Create interactive matrix using QGraphicsFramework

  1. #1
    Join Date
    Nov 2015
    Posts
    41
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Create interactive matrix using QGraphicsFramework

    Hi,

    I try achieve effect like as on the image below using QGraphicsFramework.
    matrix.jpg

    I saw 40000 Chip example and now I have problem how I can select row and column which is currently under the mouse pointer? I should append dynamic rectangle and move them when I move cursor?

    Maybe you have some idea how to implement this feature?
    Regards,

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Create interactive matrix using QGraphicsFramework

    Are you sure you don't just want a table view?

    Which part of the QGraphicsView framework's features do you need?

    Cheers,
    _

  3. #3
    Join Date
    Nov 2015
    Posts
    41
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Create interactive matrix using QGraphicsFramework

    I think that one of the feature which I want to have will be difficult or even impossible to implement using QTableWidget - zooming by mouse wheel.

    But in future maybe I will need also draw dynamic descriptions of specific element in matrix or drag and replace elements in matrix.

    Do you think that implement matrix similar to that from image will be difficult using QGraphicsView Framework?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Create interactive matrix using QGraphicsFramework

    I see. Yes, if you need zooming, then this might be a good approach.

    You will need some internal data structure that allows you to know where an item is logically, i.e. in which row/column it is.
    The item for a mouse position can be had via QGraphicView::itemAt().

    Cheers,
    _

Similar Threads

  1. can we create a dot matrix display in qt
    By navi.ragula in forum Qt Programming
    Replies: 0
    Last Post: 29th October 2012, 07:24
  2. Interactive graphics in Qt
    By wconstan in forum Newbie
    Replies: 2
    Last Post: 15th December 2010, 20:51
  3. Interactive QProcess
    By inktomi in forum Qt Programming
    Replies: 3
    Last Post: 8th August 2009, 18:21
  4. interactive image recommendation
    By yagabey in forum Qt Programming
    Replies: 0
    Last Post: 23rd November 2008, 12:03
  5. qsqlquery interactive?
    By lamera in forum Newbie
    Replies: 2
    Last Post: 7th September 2008, 10:09

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.