Page 1 of 2 12 LastLast
Results 1 to 20 of 31

Thread: Programming patterns, code structure? C++, Qt & wxwidgets

  1. #1
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Programming patterns, code structure? C++, Qt & wxwidgets

    Basically i would like to see hod the classes are organized and how GUI functions with code behind.

    I need good, tutorial, document or book where i can read/learn more about code design patterns for desktop applications in C++.

    Also if there is good open source project to learn more about that it would be very very helpful.

    Preferable type of application is app that works with database, enter some data to database and give some output.

    I prefered Qt but also wxwidgets would be great.

    Platform preferable for Linux.

    Thank you very much.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets


  3. #3
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Arrow Re: Programming patterns, code structure? C++, Qt & wxwidgets

    i have that book for Qt3 but it's not what i'm looking for

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    What do you want?

  5. #5
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    as i asked:

    Basically i would like to see hod the classes are organized and how GUI functions with code behind.
    or if there is good open source project to learn more about that.

    Preferable type of application is app that works with database, enter some data to database and give some output.

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets


  7. #7
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Bro, i know for all of those but i need "short cut"

    practical example how is that done.

  8. #8
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    What is a "short cut"?

  9. #9
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    forget about everything

    if someone can help me and provide me with good practical tutorial and/or example of C++ Qt or wxwidgets application that works with database, has 3 or more forms for editing data and few outputs i would be very grateful.

    I need pattern and practical example how classes are organize in such a project.

    I want to see full, working project where i can see good uses of container classes and child classes + GUI

    I would be very very grateful for this.

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

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    You can find lots of applications at qt-apps.org.

    You are very unclear about what you want, it's highly unlikely you will get what you want with such attitude. If you want to learn gui programming, you can't do it based upon one application. There are C++ patterns you can use and they are valid for GUI as well, that's what I'd start with if I were you.
    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. #11
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Ok,

    you are right i think.

    i'm sorry about that, the best would be to erase this topic, i was very unclear

    i'm sorry

  12. #12
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    If you want examples, there are a lot of them provided with Qt. Also about database programming.

    And I would definitively choose Qt over wxwidgets

    Best regards,
    Marc

  13. #13
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    but i like wxwidgets licence more

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

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Quote Originally Posted by nardev View Post
    but i like wxwidgets licence more
    Correct me if I'm wrong but both wxWidgets and Qt are licenced under LGPL.
    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.


  15. #15
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    The way those two projects are maintained/built are quite different.

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

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Quote Originally Posted by nardev View Post
    The way those two projects are maintained/built are quite different.
    What does the licence have to do with this?

    Architecture of Qt is light years ahead of that of wxWidgets, that's what counts most.
    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.


  17. #17
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Compare:

    http://qt.nokia.com/products/licensing

    http://www.wxwidgets.org/about/newlicen.htm

    The wxWindows Licence is essentially the L-GPL (Library General Public Licence), with an exception stating that derived works in binary form may be distributed on the user's own terms. This is a solution that satisfies those who wish to produce GPL'ed software using wxWidgets, and also those producing proprietary software.
    where Qt does this:

    Must provide source code changes to Qt:
    Source code must be provided

    Can create proprietary applications:
    LGPL: Yes, in accordance with the LGPL v. 2.1 terms
    OR
    GPL: No, applications are subject to the GPL and source code must be made available
    It's not exactly the same i think.

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

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Do you intend to modify Qt or wxWidgets?
    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.


  19. #19
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    I understand that Qt is way in front with capabilities i just said that i prefer more wxwidgets model of licencing.

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

    Default Re: Programming patterns, code structure? C++, Qt & wxwidgets

    Again, have you ever modified a single line of code from wxWidgets?
    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.


Similar Threads

  1. Replies: 10
    Last Post: 2nd December 2010, 07:10
  2. Replies: 3
    Last Post: 4th June 2010, 08:10
  3. sending structure through udp socket programming
    By hemrajn in forum Qt Programming
    Replies: 9
    Last Post: 15th May 2009, 23:55
  4. Structure of the code with database access
    By PaceyIV in forum Newbie
    Replies: 0
    Last Post: 31st March 2009, 19:12
  5. Qt vs wxWidgets
    By mickey in forum General Discussion
    Replies: 4
    Last Post: 14th March 2008, 20:29

Tags for this Thread

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.