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
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Windows XP and QGraphicsView/Scene

    I guess you should test the app on a real XP box, after all, emulators are just emulators.

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

    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

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

    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?

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

    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

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

    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.