Results 1 to 20 of 23

Thread: Is Qt for GUI only?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Red face Is Qt for GUI only?

    Hi guys,I am a new Qt user.I have some C++ experience and decided to start making GUI(after console app.)
    So,my question is:Is Qt only for GUI development,or it can be used to code the "engine"(functionality)of my program as well?

    Thank you.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Is Qt for GUI only?

    It is not only for programming a GUI. QtCore, QtXml, QtSql etc. all doesn't belong to GUI. So Qt is also quite perfect to code an engine. Just go ahead an you'll see.

  3. #3
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Quote Originally Posted by Lykurg View Post
    It is not only for programming a GUI. QtCore, QtXml, QtSql etc. all doesn't belong to GUI. So Qt is also quite perfect to code an engine. Just go ahead an you'll see.
    Aha..but can I also add code(for the engine)in my main.cpp file?
    And can you please recommend a good tutorial/book that expalines Qt well?

    Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Is Qt for GUI only?

    Quote Originally Posted by "BumbleBee" View Post
    Aha..but can I also add code(for the engine)in my main.cpp file?
    I am sorry, but I don't get you. What do you want to do?
    And can you please recommend a good tutorial/book that expalines Qt well?
    There are a lot of thread about that at the forum. But also my favorite one of Johan Thelin is mainly focused on GUI creation. So better say what kind of library you are planing and we probably point you to the important classes you will need to know. Also the documentation is good enough to learn.

  5. #5
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Well,when you are coding in a console app. you have the main function,where everything happens,I asked if the file main.cpp hold ass well the code for the engine(like commends besides the GUI..:/)

    And I don't have in mind anything specific right now,I just want to learn using Qt as a normal language....so that I can create any project I like.

  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: Is Qt for GUI only?

    Qt is not a language. Qt apps are usually written in C++ so everything that applies to any C++ application applies to Qt applications too.
    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.


  7. #7
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Ok,so as I understand I can code(functionality) in Qt...so any good books to get me started?

  8. #8
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is Qt for GUI only?

    Have you completed the address book tutorial ?

    The documentation is also very good if you don't understand something.

    If you can't find something in the documentation (or don't understand it) then you are welcome to post here.

    There is also a thread on this forum about books, should you prefer to learn that way.

  9. #9
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Quote Originally Posted by squidge View Post
    Have you completed the address book tutorial ?

    The documentation is also very good if you don't understand something.

    If you can't find something in the documentation (or don't understand it) then you are welcome to post here.

    There is also a thread on this forum about books, should you prefer to learn that way.
    Sorry,what is the adressbook?

  10. #10
    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: Is Qt for GUI only?

    Quote Originally Posted by "BumbleBee" View Post
    Sorry,what is the adressbook?
    http://doc.qt.nokia.com/4.7/tutorials-addressbook.html

  11. #11
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Thank you...
    How much does it usually take to learn Qt and create applications alone?

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.