Results 1 to 2 of 2

Thread: qgraphicsview in wince,can i don't use the float

  1. #1
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    1

    Default qgraphicsview in wince,can i don't use the float

    hi,all
    In my application which is run in wince, I uses the graphicsview framework,

    as far as i know ,the QGraphicsitem use the float variable ,Does it loss efficiency in the device which the cpu is arm,can i use the int in place of float variable,how can i do it? Should I change the source of the Qt's code?,Thanks!

  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: qgraphicsview in wince,can i don't use the float

    I dont think theres much loss in efficiency. Graphics view is designed to handle many items.
    And lets talk about float thing,, how many float values do you think one need to render ? The scene rect, the view rect, the items rect ,, all in float... rest is a matter of conversion from float to pixel,,, since finally what you see are pixels,, and not float positions. So would you gain by changing from float to int ?
    Correct me if am missing something

Similar Threads

  1. Replies: 0
    Last Post: 29th September 2009, 02:28
  2. Replies: 1
    Last Post: 16th September 2009, 11:23
  3. Display cursor position in QGraphicsView
    By dbrmik in forum Qt Programming
    Replies: 1
    Last Post: 2nd April 2009, 15:06
  4. Replies: 0
    Last Post: 5th March 2009, 06:54
  5. QGraphicsView and embeded widgets
    By bunjee in forum Qt Programming
    Replies: 10
    Last Post: 12th October 2008, 07:43

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.