Results 1 to 2 of 2

Thread: more explanation of QQuickItem::windowChanged(..)

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default more explanation of QQuickItem::windowChanged(..)

    Hello forum,

    I am going through the documentaion - "Scene Graph - OpenGL Under QML" and there is a signal/slot connection as follows:

    Qt Code:
    1. connect(this, SIGNAL(windowChanged(QQuickWindow*)), this, SLOT(handleWindowChanged(QQuickWindow*)));
    To copy to clipboard, switch view to plain text mode 

    I have seen in the documentation about the signal -
    Qt Code:
    1. windowChanged(QQuickWindow*)
    To copy to clipboard, switch view to plain text mode 
    it says that the signal is emitted when the item's window changed. What kind of changes are we talking about here - window creation, resizing, dragging, mouse/key focus ?

    Any one to put more light into this ?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: more explanation of QQuickItem::windowChanged(..)

    From the documentation my guess is that it works like property change signal, i.e. it is emitted when the pointer returned by QQuickItem::window() changes.

    So when the item gets first added to a scene of a QQuickWindow or when it is moved to a scene of a different window.

    Cheers,
    _

Similar Threads

  1. Extract QImage from QQuickItem
    By oberlus in forum Qt Quick
    Replies: 4
    Last Post: 20th September 2014, 10:42
  2. Bitmap font for QQuickItem?
    By qtlearning in forum Qt Quick
    Replies: 10
    Last Post: 20th December 2013, 07:29
  3. Replies: 1
    Last Post: 21st June 2013, 16:39
  4. explanation for Qstring to int
    By qtlinuxnewbie in forum Newbie
    Replies: 1
    Last Post: 11th February 2010, 06:52
  5. Explanation to Image Formats
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 6th July 2007, 17:02

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.