Results 1 to 6 of 6

Thread: pointers behaviour in qt and specially signals/slot mechanism

  1. #1
    Join Date
    Jan 2008
    Location
    Finland /Pakistan
    Posts
    216
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default pointers behaviour in qt and specially signals/slot mechanism

    hi..
    i am developing a program in qt which is using pointer and i am running into some problem with it,but before putting my question here i would like to clear myself with the concept so if there is some special or efficient way of using pointer types in qt,i would like to know about that..
    if you have any idea please do share..thanks....

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: pointers behaviour in qt and specially signals/slot mechanism

    Qt applications are C++ applications. Everything that applies to C++ applies to Qt-based apps as well.

  3. #3
    Join Date
    Jan 2008
    Location
    Finland /Pakistan
    Posts
    216
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: pointers behaviour in qt and specially signals/slot mechanism

    yes,thats true..to be specific i was just guessing any mechanism form data sharing between classes ..

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: pointers behaviour in qt and specially signals/slot mechanism

    There are QSharedData and QSharedDataPointer classes (and their explicitely shared counterparts) but they are not really related to pointers. Pointers are pointers.

  5. #5
    Join Date
    Jan 2008
    Location
    Finland /Pakistan
    Posts
    216
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: pointers behaviour in qt and specially signals/slot mechanism

    hmm..i have seen implicit and explicit sharing and it seems to make a copy/refernece of object with all it properites ..i have also seen qpointer as name suggests that it might be useful..but to no use...actually i am still stuck with the same problem which i posted tommorow and th post was moved to general programming,i was thinking of different approach but it seems i have no visible way OUT..!!..if anyone has some suggestion for that pls do tell me...until then i will keep trying..

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: pointers behaviour in qt and specially signals/slot mechanism

    Quote Originally Posted by salmanmanekia View Post
    hmm..i have seen implicit and explicit sharing and it seems to make a copy/refernece of object with all it properites
    On the contrary, it does not make a copy of the object with all its data.

    .i have also seen qpointer as name suggests that it might be useful..
    It is useful, but to what purpose?

    actually i am still stuck with the same problem which i posted tommorow and th post was moved to general programming,i was thinking of different approach but it seems i have no visible way OUT..!!..if anyone has some suggestion for that pls do tell me...until then i will keep trying..
    Let's stick with one thread for the subject then.

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.