Results 1 to 9 of 9

Thread: Problem with QScrollArea updating from 4.0.1 to 4.1.0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Problem with QScrollArea updating from 4.0.1 to 4.1.0

    Hi all. I downloaded the last version of Qt (4.1.0) for Windows. I'm using windows XP. Before, I was using 4.0.1 version, so I thought that wouldn't exist problems updating my program to the new version. But I'm really worried, because the scroll area that I was using don't works and with version 4.0.1 worked perfectly. Well,this is what I do in the program: I have subclassed QScrollArea and I have reimplemented the method paintEvent to resize the widget that contains the scroll area since the size of the viewport and the size of the image that I draw on the widget. With version 4.0.1 the paintEvent method was called everytime the size of the main window changes, so the widget of the scroll area was ever updated. But my surpise comes when, with the new version, the paintEvent method is not called if I resize the main window. Very strange and annoying. Moreover if I call viewport() method in the paintEvent to know the size of the viewport, it give me invalid values. I have readed the list of changes of the new version but I havent' found anything changed in QScrollArea Could the problem come because I have subclased too the paintEvent method of the widget that contains the scrollarea? I repeat that the same code worked perfectly with the version before (4.0.1). But I have to use the new version because it has fixed some bugs that I need; for example saving jpegs in different quality factors and others. Anyone could explain me why it doesn't work now or what's the difference between the old QScrolArea and the new? Many thanks.
    Last edited by SkripT; 27th January 2006 at 00:57.

Similar Threads

  1. Replies: 2
    Last Post: 8th October 2006, 20:14

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.