Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: Adding item to GridLayout???

  1. #21
    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: Adding item to GridLayout???

    Quote Originally Posted by Kapil
    For the operator errors, then i checked with the QDataStream class description and its functions... i just exactly did as per the code sample given by you.. i made no changes from my side..
    I didn't say they were absolutely correct. This is really a c++ issue of either overriding a class streaming operator or providing an external function which acts as one (so you can solve it by reading a C++ tutorial or a book). If you can't handle the second approach, try the first one.

  2. #22
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Adding item to GridLayout???

    Ok... so i would try to inherit the class QDataStream and try to override the operator function...

    About the copy paste concept, was my logic correct while applying it ???
    Like the way i thought for doing it.. i might be syntactially wrong and would correct it if my approach is okay... so wanted to know is it right way to go for it ???

    Kapil
    All you have to decide is what to do with the time that is given to you

  3. #23
    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: Adding item to GridLayout???

    Quote Originally Posted by Kapil
    Ok... so i would try to inherit the class QDataStream and try to override the operator function...
    Nothing like that. Implement operator<< and operator>> in your class.

    About the copy paste concept, was my logic correct while applying it ???
    Like the way i thought for doing it.. i might be syntactially wrong and would correct it if my approach is okay... so wanted to know is it right way to go for it ???
    If it works then it's fine. If it doesn't then it's not.

  4. #24
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Adding item to GridLayout???

    Quote Originally Posted by wysota
    If it works then it's fine. If it doesn't then it's not.
    Thanks a lot..
    That was a smart answer
    All you have to decide is what to do with the time that is given to you

Similar Threads

  1. ListWidget positions item
    By talex in forum Qt Programming
    Replies: 3
    Last Post: 21st October 2008, 15:16
  2. View, Scene, Item and thread??
    By dungsivn in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 19:21
  3. Item in a DLL not getting events
    By Benne Gesserit in forum Qt Programming
    Replies: 11
    Last Post: 16th August 2008, 22:30
  4. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37
  5. Replies: 1
    Last Post: 19th April 2007, 22:23

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.