Results 1 to 8 of 8

Thread: Has parent/child resizeEvent calling order changed since Qt5.1.1?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Question Has parent/child resizeEvent calling order changed since Qt5.1.1?

    I came back to my Qt project after a break and upgraded it from 5.1.1 to 5.5. Now I've found at least one feature that is broken for a reason I don't quite understand...

    I have a dialog with an expanding QLabel. Layout is built in such a way that this label covers most of the dialog width with any reasonable size. I'm attaching a screenshot from Designer for clarity - the QLabel in question (tilesImage_) is selected.

    For some reason, when QDialog::resizeEvent() gets called after creating the dialog, tilesImage_ still has wrong size (much smaller than it should be, e.g. 100x64 when the dialog is 688x411). My code relied on the fact that all widget sizes are properly updated at this point, and this definitely worked in Qt 5.1.1 (I just checked an old build). Apparently, something important changed between 5.1.1 and 5.5 in this regard. Is there any documentation about this change? Any workarounds (except installing an event filter to each separate widget I need to check)?
    Attached Images Attached Images

Similar Threads

  1. Replies: 2
    Last Post: 25th February 2015, 18:18
  2. styling parent but not child?
    By ugluk in forum Qt Programming
    Replies: 3
    Last Post: 13th October 2011, 02:55
  3. Calling a method to a parent window/widget
    By johnnyturbo3 in forum Newbie
    Replies: 4
    Last Post: 6th November 2010, 15:52
  4. Parent Child for window
    By febil in forum Qt Programming
    Replies: 6
    Last Post: 1st April 2009, 05:00
  5. resizeEvent from parent to child?
    By ChasW in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2007, 18:21

Tags for this Thread

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.