Results 1 to 5 of 5

Thread: Is there any potential risk when getting children of QObject?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Location
    Beijing China
    Posts
    77
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    21
    Thanked 3 Times in 3 Posts

    Default Re: Is there any potential risk when getting children of QObject?

    Quote Originally Posted by talk2amulya View Post
    well, there seems nothing wrong with it...make sure "this" and "widget" are pointing to the same object
    Of course they point to the same object. However, I don't think these objects are supposed to be accessed by users, are they?

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: Is there any potential risk when getting children of QObject?

    i dont understand what u mean by whether it should be accessible to the user. All you are doing is providing a navigator and view using the parent. I dont think there is any "risk" in that, although i dont totally understand ur context

  3. The following user says thank you to talk2amulya for this useful post:

    nifei (12th February 2009)

  4. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Is there any potential risk when getting children of QObject?

    Quote Originally Posted by nifei View Post
    However, I don't think these objects are supposed to be accessed by users, are they?
    You're right in the sense that nobody guarantees that for example "qt_calendar_navigationbar" exists in the future. You're on your own when you rely on internal parts of Qt.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    nifei (12th February 2009)

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.