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

Thread: Serialization Of Xml using QObjects

  1. #21
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: Serialization Of Xml using QObjects

    Dear Wysota,


    Thanks for the reply.......But actually i am not knowing where this "frmMain" class is coming from because the name of my class is Contact right then what exactly frmMain is.....Is that a builtin file or library .........Can you help out me here......Any solution would be appreciable.....Thanks in advance............



    Regards,

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

    Default Re: Serialization Of Xml using QObjects

    Quote Originally Posted by StarRocks View Post
    But actually i am not knowing where this "frmMain" class is coming from
    It's coming from the code you have written. You posted some code that in main() tries to instantiate a frmMain class and it fails. This is strictly a C++ issue, if you can't handle it then there is nothing we can do, we will not teach you C++ -- get a good C++ book, read it and learn from it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #23
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: Serialization Of Xml using QObjects

    Dear wysota,

    Thanks for the reply.......Actually i am not knowing where this "frmMain" coming from because the name of my class is "Contact" but when i give that name its throwing me out with errors.....what exactly is "frmMain" ..........can you help me out in this.........Thanks in advance.........Any solution would be appreciable........


    Regards,

  4. #24
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Serialization Of Xml using QObjects

    Have look at the example in my other post, see it looks similar to what you are looking for.

    http://www.qtcentre.org/threads/5258...730#post235730
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

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

    Default Re: Serialization Of Xml using QObjects

    Quote Originally Posted by Santosh Reddy View Post
    Have look at the example in my other post, see it looks similar to what you are looking for.
    Maybe because StarRocks and sai_3289 share the same IP
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #26
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: Serialization Of Xml using QObjects

    Dear Wysota,

    Thanks for the reply.......i know that i am missed with "frmMain" class but this class is not part my class because the name of my class is "Contact" and am not knowing what exactly frmMain is ........Because if i use my class name Contact in the place of frmMain in the main.cpp its throwing me errors saying "error: expected type-specifier before 'frmMain'" .....Hope you got my problem......Thanks in advance....Any solution would be appreciable......



    Regards,

  7. #27
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Serialization Of Xml using QObjects

    Quote Originally Posted by StarRocks View Post
    i know that i am missed with "frmMain" class but this class is not part my class because the name of my class is "Contact" and am not knowing what exactly frmMain is
    So who wrote your main() function?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #28
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    5

    Red face Re: Serialization Of Xml using QObjects

    Dear wysota,


    Thanks for the reply...........Actually i google searched and got this program but as i said when i tried to apply my class name in place of "firName" its throwing me with errors......Hope you got my problem......Any solution would be appreciable....Thanks in Advance......



    Regards,

  9. #29
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Serialization Of Xml using QObjects

    i tried to apply my class name in place of "firName" its throwing me with errors
    This can be only done in a case where firName (or frmMain) is a class template, unfortunately it is not.

    As wysota posted earlier, you better clear your C++ basics and them come back Xml/Objects/Qt. It will be very difficult to undersand things unless one is clear about what they are writing (in C++). I think this is one of the reasons this thread grown so long in couple of days
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

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

    Default Re: Serialization Of Xml using QObjects

    I'm sorry but with no C++ skills you will not be able to write any programs. Be it using Qt or not. Go and learn basic stuff first.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #31
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,343
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Serialization Of Xml using QObjects

    So who wrote your main() function?
    Maybe it was sai_3289. Both of them seem to be using the same keyboard, the one with the sticky ................................. key.

Similar Threads

  1. Replies: 1
    Last Post: 11th August 2011, 15:18
  2. Creating QObjects before QCoreApplication
    By dawwin in forum Qt Programming
    Replies: 2
    Last Post: 13th April 2011, 19:00
  3. Generic XML Serialization of QObjects
    By nickolais in forum Qt Programming
    Replies: 3
    Last Post: 23rd March 2011, 09:47
  4. Find QObjects that insatlled event filter
    By babu198649 in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2010, 12:27
  5. QObjects as data members stored by value
    By Radagast in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2009, 20:14

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.