Results 1 to 8 of 8

Thread: Windows XP and QGraphicsView/Scene

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Posts
    60
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Windows XP and QGraphicsView/Scene

    Okay, here is an example. It is sort of different in that the items don't even show up if you switch windows. I tried this on a real XP box with the same results.

    Thanks
    mAx
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    England
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Re: Windows XP and QGraphicsView/Scene

    Looking at your problem, I think it may well be related to mine (Possible QGraphicsView/Scene bug). I found that the items would only show up if the window was resized.
    It's possible that it is a bug in a recent Qt version. I've had the problem on Qt 4.2.2 and KDE's svn qt-copy both under Linux. What versions were your executables built with?

  3. #3
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Thanked 38 Times in 30 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Windows XP and QGraphicsView/Scene

    I think there's a bug in this GraphicsTest example. It doesn't add any items to the scene. The view is basically visualizing... nothing :-).
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

  4. #4
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Thanked 38 Times in 30 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Windows XP and QGraphicsView/Scene

    My bad, I misread the example, items are indeed added.

    The bug is that the items are added at positions like -4200000, 536, but the top-left corner of the scene is set to (0, 0). The defOffset variable, which is added to all X coordinates, seems to be uninitialized. Removing this variable, or setting it to 0, gives me rects and diamonds.
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

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
  •  
Qt is a trademark of The Qt Company.