Re: [Qt-creator] plain C++ project
On Thursday 23 September 2010 18:05:26 ext Matthias Pospiech wrote: Am 23.09.2010 17:24, schrieb Coda Highland: The only change needed to the .pro file is CONFIG -= qt, and forgetting that just means that the application LINKS to QtCore and QtGui -- it doesn't require you to use any Qt classes or tools in the source code. I have been using QtCreator in a class lately as well. The problems of all students were not at all related to the make system. It is much much more important to have a easy learnable IDE and understandable error messages. However I experienced that without Qt debugging of a plain c++ project failed. The easy solution was to readd QtCore again. That sounds like you were (not...) using the compiled debugging helpers, i.e. you are either on Mac, or more likely using an too old gdb. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Am 24.09.2010 08:13, schrieb André Pönitz: However I experienced that without Qt debugging of a plain c++ project failed. The easy solution was to readd QtCore again. That sounds like you were (not...) using the compiled debugging helpers, i.e. you are either on Mac, or more likely using an too old gdb. It was not my computer. I gave around Qt SDK 4.6.3 and QtCreator 2.0.1. To be true I have no idea what the 'compiled debugging helpers' are or how I could have no been using them. Matthias ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
On Friday 24 September 2010 09:26:21 ext Matthias Pospiech wrote: Am 24.09.2010 08:13, schrieb André Pönitz: However I experienced that without Qt debugging of a plain c++ project failed. The easy solution was to readd QtCore again. That sounds like you were (not...) using the compiled debugging helpers, i.e. you are either on Mac, or more likely using an too old gdb. It was not my computer. I gave around Qt SDK 4.6.3 and QtCreator 2.0.1. Could you check whether your gdb setting in Creator point to Qt/2010.05/pythongdb/gdb-i686-pc-mingw32.exe or similar? If the problem persists, feel free to send the gdb log (right pane of {Windows|Debugger}-Views-{Debugger|Log}) in private mail. To be true I have no idea what the 'compiled debugging helpers' are or how I could have no been using them. http://doc.qt.nokia.com/qtcreator-snapshot/creator-debugging-helpers.html Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
If you have the option, I would recommend CMake. It's a lot easier than crafting your own makefiles. Creator has very limited support for cmake but it's enough for trivial projects. On Thu, Sep 23, 2010 at 11:49 AM, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
You can do that but it means using qmake which is rather unforgiving and cludgy. It's nice to have confidence in your tools. Plus it mean every student would need the Qt sdk. You'd much rather spend your time productively than trying to figure what qmake is not linking your libraries because you got the order of the variables wrong. Again, I would really recommend CMake. A project is just a single text file which you can process with a GUI tool to generate the make files for your platform. On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk wrote: Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
В Thu, 23 Sep 2010 12:41:52 +0100 Danny Price deepblue...@googlemail.com пишет: DP You can do that but it means using qmake which is rather unforgiving and DP cludgy. It's nice to have confidence in your tools. Plus it mean every DP student would need the Qt sdk. You'd much rather spend your time DP productively than trying to figure what qmake is not linking your libraries DP because you got the order of the variables wrong. DP DP Again, I would really recommend CMake. A project is just a single text file DP which you can process with a GUI tool to generate the make files for your DP platform. DP Qt Creator can import CMake-based project and work with them. As I know, it can't create currently it by itself. DP On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman DP davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk DP wrote: DP DP Wow. So much trouble/hassle :( DP DP I think I'd rather recommend just making a Qt Console application and DP editing the project file to remove 'core' from $$QT. DP DP The lecturer can then just this project to quickly 'type, compile, run' DP stuff, with the console output at the bottom of the page. DP DP Perhaps bigger generic projects would benefit from following the DP instructions below, but it's too much effort compared to his current DP tool for me to be able to recommend it. DP DP Thanks though, DP DP Max. DP DP On Thu, 23 Sep 2010 21:49 +1100, Alexander 'hatred' Drozdoff DP adrozd...@gmail.com wrote: DP В Thu, 23 Sep 2010 13:25:41 +0300 DP Max Waterman DP davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk DP пишет: DP DP MW I'm trying to get my university C++ course tutor to use QtCreator in DP his DP MW lectures rather than something which actually looks pretty aweful. DP MW DP MW However, because he's not teaching Qt, he needs it to support plain DP MW boring C++. DP MW DP MW What's the easiest way to do this? It's not entirely obvious from the DP MW project options. DP DP Create Makefile-based project and use Generic project DP http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html DP DP DP -- DP WBR DP Alexander Drozdov DP FIDO: 2:5045/41.84 DP Site: http://hatred.homelinux.net DP Site: http://archlinux.org.ru DP DP ___ DP Qt-creator mailing list DP Qt-creator@trolltech.com DP http://lists.trolltech.com/mailman/listinfo/qt-creator DP DP DP ___ DP Qt-creator mailing list DP Qt-creator@trolltech.com DP http://lists.trolltech.com/mailman/listinfo/qt-creator DP -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Actually, I use qmake on some pretty big projects (with many contributors - libmeegotouch is the case in point). We/I have had some trouble with it too, but in almost all cases it is me/us not knowning how it works (or undocumented features) and it can in fact be made to do what I want. I'm sure there are cases where other tools are better, of course. In anycase, I think you might be over-estimating the level of this class. For example, for the class project, we're not allowed to use any libraries at all (over the standard ones). I will have to check, but build tools aren't covered - not even make. If there were an option for 'Cmake based console app' that basically just dropped you into the editor with the build and run buttons working without having to do anything, then it would work just as easily as the above - I wouldn't have any qualms about recommending that Max. On Thu, 23 Sep 2010 12:41 +0100, Danny Price deepblue...@googlemail.com wrote: You can do that but it means using qmake which is rather unforgiving and cludgy. It's nice to have confidence in your tools. Plus it mean every student would need the Qt sdk. You'd much rather spend your time productively than trying to figure what qmake is not linking your libraries because you got the order of the variables wrong. Again, I would really recommend CMake. A project is just a single text file which you can process with a GUI tool to generate the make files for your platform. On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman [1]davidmaxwaterman+qtcrea...@fastmail.co.uk wrote: Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, Alexander 'hatred' Drozdoff [2]adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman [3]davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project [4]http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-gen eric.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: [5]http://hatred.homelinux.net Site: [6]http://archlinux.org.ru ___ Qt-creator mailing list [7]qt-crea...@trolltech.com [8]http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list [9]qt-crea...@trolltech.com [10]http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator References 1. mailto:davidmaxwaterman%2bqtcrea...@fastmail.co.uk 2. mailto:adrozd...@gmail.com 3. mailto:davidmaxwaterman%2bqtcrea...@fastmail.co.uk 4. http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html 5. http://hatred.homelinux.net/ 6. http://archlinux.org.ru/ 7. mailto:Qt-creator@trolltech.com 8. http://lists.trolltech.com/mailman/listinfo/qt-creator 9. mailto:Qt-creator@trolltech.com 10. http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
It would also depend on exactly what is being taught. If this is a level one C++ course, I would recommend editing the make file manually so the students have some basic understanding of what a makefile is and how it relates to project management. Then you can move to CMake or qmake or whatever makefile generator makes sense and see what these tools do for you as your projects become more complex. Karl On 9/23/2010 6:41 AM, Danny Price wrote: You can do that but it means using qmake which is rather unforgiving and cludgy. It's nice to have confidence in your tools. Plus it mean every student would need the Qt sdk. You'd much rather spend your time productively than trying to figure what qmake is not linking your libraries because you got the order of the variables wrong. Again, I would really recommend CMake. A project is just a single text file which you can process with a GUI tool to generate the make files for your platform. On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk wrote: Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, "Alexander 'hatred' Drozdoff" adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 "Max Waterman" davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
I completely disagree. C++ is complex enough without having to worry about introducing makefiles and toolchains to students, particularly non-standard, platform-specific makefiles and toolchains. On Thu, Sep 23, 2010 at 1:04 PM, Karl Ruetz karl.ru...@sototech.com wrote: It would also depend on exactly what is being taught. If this is a level one C++ course, I would recommend editing the make file manually so the students have some basic understanding of what a makefile is and how it relates to project management. Then you can move to CMake or qmake or whatever makefile generator makes sense and see what these tools do for you as your projects become more complex. Karl On 9/23/2010 6:41 AM, Danny Price wrote: You can do that but it means using qmake which is rather unforgiving and cludgy. It's nice to have confidence in your tools. Plus it mean every student would need the Qt sdk. You'd much rather spend your time productively than trying to figure what qmake is not linking your libraries because you got the order of the variables wrong. Again, I would really recommend CMake. A project is just a single text file which you can process with a GUI tool to generate the make files for your platform. On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk wrote: Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing listqt-crea...@trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Like I said... it depends on what is being taught. Karl On 9/23/2010 9:46 AM, Danny Price wrote: I completely disagree. C++ is complex enough without having to worry about introducing makefiles and toolchains to students, particularly non-standard, platform-specific makefiles and toolchains. On Thu, Sep 23, 2010 at 1:04 PM, Karl Ruetz karl.ru...@sototech.com wrote: It would also depend on exactly what is being taught. If this is a level one C++ course, I would recommend editing the make file manually so the students have some basic understanding of what a makefile is and how it relates to project management. Then you can move to CMake or qmake or whatever makefile generator makes sense and see what these tools do for you as your projects become more complex. Karl On 9/23/2010 6:41 AM, Danny Price wrote: You can do that but it means using qmake which is rather unforgiving and cludgy. It's nice to have confidence in your tools. Plus it mean every student would need the Qt sdk. You'd much rather spend your time productively than trying to figure what qmake is not linking your libraries because you got the order of the variables wrong. Again, I would really recommend CMake. A project is just a single text file which you can process with a GUI tool to generate the make files for your platform. On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk wrote: Wow. So much trouble/hassle :( I think I'd rather recommend just making a Qt Console application and editing the project file to remove 'core' from $$QT. The lecturer can then just this project to quickly 'type, compile, run' stuff, with the console output at the bottom of the page. Perhaps bigger generic projects would benefit from following the instructions below, but it's too much effort compared to his current tool for me to be able to recommend it. Thanks though, Max. On Thu, 23 Sep 2010 21:49 +1100, "Alexander 'hatred' Drozdoff" adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 "Max Waterman" davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___
Re: [Qt-creator] plain C++ project
What environment are you running QT in? I was doing this for C++ training for my high school robotics team. A problem that we had was inconsistency between QT in a Linux environment vs QT in a windows environment with respect to stdin and stdout. The windows environment would run in a command window with both stdin and stdout available. The Linux environment would not run in a new window and we moved on to other projects before we were able to resolve the issue with stdin. Stdout in linux can be seen inside QT in the program output pane. I picked QT as a teaching vehicle for beginning programmers since it has a very easy windows install and has lots of example code. Eric Anderson On Thu, Sep 23, 2010 at 3:49 AM, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.ukdavidmaxwaterman%2bqtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
The only change needed to the .pro file is CONFIG -= qt, and forgetting that just means that the application LINKS to QtCore and QtGui -- it doesn't require you to use any Qt classes or tools in the source code. You can add source files to the project using Creator itself, so there's no need to worry about learning how .pro files work -- but considering that it's just going to be the one line SOURCES = main.cpp for most basic programs, even that's not going to be hard. qmake may be a little clumsy when you need particularly expressive project files (better than Xcode though) but for simple projects like school assignments, it's PERFECT in its simplicity. You can't GET simpler. /s/ Adam On Thu, Sep 23, 2010 at 5:25 AM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk wrote: I'm trying to get my university C++ course tutor to use QtCreator in his lectures rather than something which actually looks pretty aweful. However, because he's not teaching Qt, he needs it to support plain boring C++. What's the easiest way to do this? It's not entirely obvious from the project options. Max. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Speaking as a student myself, in my opinion if it's an introduction to C++ class (or especially a first-level programming class in general), then doing Makefiles by hand is probably too complicated (even though it is a good skill to have), but the assignments would probably not be complex enough to make QMake an issue. Heck, for the sort of projects we did in my first-year C++ class, they could have used CMake without much issue. Just my $0.02 - Jeffery MacEachern On Thu, Sep 23, 2010 at 08:19, Eric Anderson ejan...@gmail.com wrote: What environment are you running QT in? I was doing this for C++ training for my high school robotics team. A problem that we had was inconsistency between QT in a Linux environment vs QT in a windows environment with respect to stdin and stdout. The windows environment would run in a command window with both stdin and stdout available. The Linux environment would not run in a new window and we moved on to other projects before we were able to resolve the issue with stdin. Stdout in linux can be seen inside QT in the program output pane. I picked QT as a teaching vehicle for beginning programmers since it has a very easy windows install and has lots of example code. Eric Anderson On Thu, Sep 23, 2010 at 3:49 AM, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: http://hatred.homelinux.net Site: http://archlinux.org.ru ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Am 23.09.2010 17:24, schrieb Coda Highland: The only change needed to the .pro file is CONFIG -= qt, and forgetting that just means that the application LINKS to QtCore and QtGui -- it doesn't require you to use any Qt classes or tools in the source code. I have been using QtCreator in a class lately as well. The problems of all students were not at all related to the make system. It is much much more important to have a easy learnable IDE and understandable error messages. However I experienced that without Qt debugging of a plain c++ project failed. The easy solution was to readd QtCore again. Matthias ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Am Thursday 23 September 2010 schrieb Eric Anderson: The Linux environment would not run in a new window and we moved on to other projects before we were able to resolve the issue with stdin. Stdout in linux can be seen inside QT in the program output pane. on the left pane: project find the stuff about execute (the project page seems to change every day ;-) there is a checkbox run in terminal -- then it works even in linux ;-) also check the .pro file: there must be a line like CONFIG += console Gustl -- August Hörandl august.hoera...@gmx.at In the beginning...was the command line --Neal Stephenson ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
Yeah that's what it wants you to think. but for simple projects like school assignments, it's PERFECT in its simplicity. You can't GET simpler. /s/ Adam On Thu, Sep 23, 2010 at 5:25 AM, Max Waterman davidmaxwaterman+qtcrea...@fastmail.co.uk wrote: I'm trying to get my university C++ course tutor to use QtCreator in his lectures rather than something which actually looks pretty aweful. However, because he's not teaching Qt, he needs it to support plain boring C++. What's the easiest way to do this? It's not entirely obvious from the project options. Max. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] plain C++ project
On Thu, 23 Sep 2010 08:19 -0700, Eric Anderson ejan...@gmail.com wrote: What environment are you running QT in? I'm not running Qt - well, if you mean qtcreator, perhaps I am - but anyway, the class is using computers running Microsoft Windows - some virtual machine or other. I don't use Microsoft s/w unless there's no option, so I'm not familiar enough to know the differences (could be '7'). I was doing this for C++ training for my high school robotics team. A problem that we had was inconsistency between QT in a Linux environment vs QT in a windows environment with respect to stdin and stdout. The windows environment would run in a command window with both stdin and stdout available. The Linux environment would not run in a new window and we moved on to other projects before we were able to resolve the issue with stdin. Stdout in linux can be seen inside QT in the program output pane. I picked QT as a teaching vehicle for beginning programmers since it has a very easy windows install and has lots of example code. Hrm. I use Linux and haven't noticed such a problem (use the 'run in terminal' option), but since the class and other students will almost all be using Microsoft something-or-other, I don't think this is an issue, according to you anyway. I will test next time I get access to a computer running Microsoft. Thanks, Max. Eric Anderson On Thu, Sep 23, 2010 at 3:49 AM, Alexander 'hatred' Drozdoff [1]adrozd...@gmail.com wrote: В Thu, 23 Sep 2010 13:25:41 +0300 Max Waterman [2]davidmaxwaterman+qtcrea...@fastmail.co.uk пишет: MW I'm trying to get my university C++ course tutor to use QtCreator in his MW lectures rather than something which actually looks pretty aweful. MW MW However, because he's not teaching Qt, he needs it to support plain MW boring C++. MW MW What's the easiest way to do this? It's not entirely obvious from the MW project options. Create Makefile-based project and use Generic project [3]http://doc.qt.nokia.com/qtcreator-snapshot/creator-project- generic.html -- WBR Alexander Drozdov FIDO: 2:5045/41.84 Site: [4]http://hatred.homelinux.net Site: [5]http://archlinux.org.ru ___ Qt-creator mailing list [6]qt-crea...@trolltech.com [7]http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator References 1. mailto:adrozd...@gmail.com 2. mailto:davidmaxwaterman%2bqtcrea...@fastmail.co.uk 3. http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html 4. http://hatred.homelinux.net/ 5. http://archlinux.org.ru/ 6. mailto:Qt-creator@trolltech.com 7. http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator