Re: [Qt-creator] Switching project automatically
I agree! On Thu, Jul 22, 2010 at 4:19 AM, Li Lirong leon.li.lir...@gmail.com wrote: Hi, Before qtcreator 2.0, the current project was switched whenever the active file is switched. This is handy because I can always Ctrl + B to build the project that contains the files I am currently editing. Now in qtcreator 2.0, I have to manually change the project with several mouse clicks. Is it possible to bring back the old behavior of switching project back in 2.0? Best regards, Lirong ___ 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] Switching project automatically
I do not agree, for example, I edit the file relating to the dependent library. Better to make the ability to customize behavior. 22.07.2010 10:19, Li Lirong пишет: Before qtcreator 2.0, the current project was switched whenever the active file is switched. This is handy because I can always Ctrl + B to build the project that contains the files I am currently editing. Now in qtcreator 2.0, I have to manually change the project with several mouse clicks. Is it possible to bring back the old behavior of switching project back in 2.0? ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Switching project automatically
If you have the 'Synchronize with Editor' setting enabled in the project view, you can bind Ctrl + B to 'BuildCM', which means, build as if invoked from the context menu in the project view. This isn't as good as the previous functionality, IMO, but it gets you most of the way there. Kris Wong -Original Message- From: qt-creator-boun...@trolltech.com [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Litkevich Yuriy Sent: Thursday, July 22, 2010 6:33 AM To: qt-creator@trolltech.com Subject: Re: [Qt-creator] Switching project automatically I do not agree, for example, I edit the file relating to the dependent library. Better to make the ability to customize behavior. 22.07.2010 10:19, Li Lirong пишет: Before qtcreator 2.0, the current project was switched whenever the active file is switched. This is handy because I can always Ctrl + B to build the project that contains the files I am currently editing. Now in qtcreator 2.0, I have to manually change the project with several mouse clicks. Is it possible to bring back the old behavior of switching project back in 2.0? ___ 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] Cout not printing
Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Thank you Jothy ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
To get it work, we need to create the project as a console project. Jothy On Thu, Jul 22, 2010 at 3:11 PM, Jothy jothyb...@gmail.com wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Thank you Jothy ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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] Cout not printing
#includeQDebug qDebug() printing; WORKS!! Jothy On Thu, Jul 22, 2010 at 3:18 PM, Jothy jothyb...@gmail.com wrote: No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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] Cout not printing
Why not use qDebug() then? qDebug() printing; should work fine. On Thu, Jul 22, 2010 at 9:18 AM, Jothy jothyb...@gmail.com wrote: No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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] Cout not printing
Yes, it works fine! Does anyone have experience of using boost libraries with QtCreator? If so, any instruction on how to use. I think we should start a WIKI page for Qt Creator. Thank you Jothy On Thu, Jul 22, 2010 at 3:30 PM, Coda Highland c...@bobandgeorge.comwrote: Why not use qDebug() then? qDebug() printing; should work fine. On Thu, Jul 22, 2010 at 9:18 AM, Jothy jothyb...@gmail.com wrote: No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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
[Qt-creator] Unable to open pro file in Qt creator2
Hi Guys, I am not able to open the pro file in Qt creator2.0(based on Qt 4.7.0), when I open the file it does not open at all.I even tried on the file list drop down in the toolbar. Is it a bug! Thank you Jothy ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to open pro file in Qt creator2
In order for us to help you, we need you to ask a more specific question. We don't know these things: - Which .pro file were you trying to open? - What does it mean it does not open at all? Error messages? Locked application? Crash? Or did you just not see what you expected? - What do you mean when you say you tried on the file list drop down? What specifically did you click and what did you see happen? - If you mean that there is a .pro file in the file list dropdown, how did it get there? Don't you need to already have it open for it to be on that dropdown? Nathan On Jul 22, 2010, at 11:08 AM, Jothy wrote: Hi Guys, I am not able to open the pro file in Qt creator2.0(based on Qt 4.7.0), when I open the file it does not open at all.I even tried on the file list drop down in the toolbar. Is it a bug! Thank you Jothy ATT1..txt ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
That's fine for C++ but what about C? printf(test\n) doesn't work unless I follow it with flush(stdout). I'm on OSX so the console config flag is not applicable. On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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] Cout not printing
As an earlier responder said, this is not really a Qt Creator question. The qt-interest list is for questions about Qt that are independent of Creator. Nathan On Jul 22, 2010, at 11:13 AM, Danny Price wrote: That's fine for C++ but what about C? printf(test\n) doesn't work unless I follow it with flush(stdout). I'm on OSX so the console config flag is not applicable. On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.commailto:christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ Qt-creator mailing list Qt-creator@trolltech.commailto:Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ATT1..txt ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to open pro file in Qt creator2
I mean the project file with *.pro extn, I need to edit it to add my inclucepath and libs. When I click on that file with Open File or Project it does not open (show). It doesn't throw any error messages! If it's the currently open project, then when you open it the way you just described, I think Qt is interpreting that you want to open the project it describes, not the file itself. So I wouldn't expect it to do anything, because you already have that project open. If you want to open it as a file, choose it from the files list at the left of the window. But, when I try to open *.pro.user, it opens properly. In edit mode it doesn't show the files in list view as shown in previous versions. Please see the screenshot. Ah, you can't see that file list. You can hide/show it with Ctrl+0. Nathan ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Switching project automatically
Thanks! I will try that out. 2010/7/22 Kris Wong wo...@seapine.com: If you have the 'Synchronize with Editor' setting enabled in the project view, you can bind Ctrl + B to 'BuildCM', which means, build as if invoked from the context menu in the project view. This isn't as good as the previous functionality, IMO, but it gets you most of the way there. Kris Wong -Original Message- From: qt-creator-boun...@trolltech.com [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Litkevich Yuriy Sent: Thursday, July 22, 2010 6:33 AM To: qt-creator@trolltech.com Subject: Re: [Qt-creator] Switching project automatically I do not agree, for example, I edit the file relating to the dependent library. Better to make the ability to customize behavior. 22.07.2010 10:19, Li Lirong пишет: Before qtcreator 2.0, the current project was switched whenever the active file is switched. This is handy because I can always Ctrl + B to build the project that contains the files I am currently editing. Now in qtcreator 2.0, I have to manually change the project with several mouse clicks. Is it possible to bring back the old behavior of switching project back in 2.0? ___ 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] Unable to open pro file in Qt creator2
Ctrl+0 (zero) has no effect! Ctrl+o opens the file open dialog. Thanks, Jothy On Thu, Jul 22, 2010 at 4:30 PM, Carter, Nathan ncar...@bentley.edu wrote: I mean the project file with *.pro extn, I need to edit it to add my inclucepath and libs. When I click on that file with Open File or Project it does not open (show). It doesn't throw any error messages! If it's the currently open project, then when you open it the way you just described, I think Qt is interpreting that you want to open the project it describes, not the file itself. So I wouldn't expect it to do anything, because you already have that project open. If you want to open it as a file, choose it from the files list at the left of the window. But, when I try to open *.pro.user, it opens properly. In edit mode it doesn't show the files in list view as shown in previous versions. Please see the screenshot. Ah, you can't see that file list. You can hide/show it with Ctrl+0. Nathan ___ 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] Unable to open pro file in Qt creator2
Go to your Window menu and use Hide/Show Sidebar. Find the shortcut key from there. On Jul 22, 2010, at 11:34 AM, Jothy wrote: Ctrl+0 (zero) has no effect! Ctrl+o opens the file open dialog. Thanks, Jothy On Thu, Jul 22, 2010 at 4:30 PM, Carter, Nathan ncar...@bentley.edumailto:ncar...@bentley.edu wrote: I mean the project file with *.pro extn, I need to edit it to add my inclucepath and libs. When I click on that file with Open File or Project it does not open (show). It doesn't throw any error messages! If it's the currently open project, then when you open it the way you just described, I think Qt is interpreting that you want to open the project it describes, not the file itself. So I wouldn't expect it to do anything, because you already have that project open. If you want to open it as a file, choose it from the files list at the left of the window. But, when I try to open *.pro.user, it opens properly. In edit mode it doesn't show the files in list view as shown in previous versions. Please see the screenshot. Ah, you can't see that file list. You can hide/show it with Ctrl+0. Nathan ___ Qt-creator mailing list Qt-creator@trolltech.commailto:Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ATT1..txt ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
Just Google for use boost with qt and you'll get a bunch of hits, including using boost::signals with Qt signals, and a bit on integrating Boost's regex stuff with Qt's. For the most part the two toolkits just work side by side, though, and don't need anything fancy. /s/ Adam On Thu, Jul 22, 2010 at 9:41 AM, Jothy jothyb...@gmail.com wrote: Yes, it works fine! Does anyone have experience of using boost libraries with QtCreator? If so, any instruction on how to use. I think we should start a WIKI page for Qt Creator. Thank you Jothy On Thu, Jul 22, 2010 at 3:30 PM, Coda Highland c...@bobandgeorge.com wrote: Why not use qDebug() then? qDebug() printing; should work fine. On Thu, Jul 22, 2010 at 9:18 AM, Jothy jothyb...@gmail.com wrote: No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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 ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cout not printing
Thanks for the hint! Jothy On Thu, Jul 22, 2010 at 4:44 PM, Coda Highland c...@bobandgeorge.comwrote: Just Google for use boost with qt and you'll get a bunch of hits, including using boost::signals with Qt signals, and a bit on integrating Boost's regex stuff with Qt's. For the most part the two toolkits just work side by side, though, and don't need anything fancy. /s/ Adam On Thu, Jul 22, 2010 at 9:41 AM, Jothy jothyb...@gmail.com wrote: Yes, it works fine! Does anyone have experience of using boost libraries with QtCreator? If so, any instruction on how to use. I think we should start a WIKI page for Qt Creator. Thank you Jothy On Thu, Jul 22, 2010 at 3:30 PM, Coda Highland c...@bobandgeorge.com wrote: Why not use qDebug() then? qDebug() printing; should work fine. On Thu, Jul 22, 2010 at 9:18 AM, Jothy jothyb...@gmail.com wrote: No, even with std::cout printing std::endl; - it doesn't print , prints only for console projects. Thanks, Jothy On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler christian.kande...@nokia.com wrote: On 07/22/2010 04:11 PM, ext Jothy wrote: Hi all, I am trying to print a string with cout, but it's not printing at all! I have included #includeiostream then coutprinting; But, nothing prints, while the application compiles and runs fine. Not a Qt Creator problem. You have to flush the output: std::cout printing std::endl; Christian ___ 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 ___ 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] Unable to open pro file in Qt creator2
That's *ALT+O *in my system, now works fine! Thanks a lot, Jothy On Thu, Jul 22, 2010 at 4:36 PM, Carter, Nathan ncar...@bentley.edu wrote: Go to your Window menu and use Hide/Show Sidebar. Find the shortcut key from there. On Jul 22, 2010, at 11:34 AM, Jothy wrote: Ctrl+0 (zero) has no effect! Ctrl+o opens the file open dialog. Thanks, Jothy On Thu, Jul 22, 2010 at 4:30 PM, Carter, Nathan ncar...@bentley.eduwrote: I mean the project file with *.pro extn, I need to edit it to add my inclucepath and libs. When I click on that file with Open File or Project it does not open (show). It doesn't throw any error messages! If it's the currently open project, then when you open it the way you just described, I think Qt is interpreting that you want to open the project it describes, not the file itself. So I wouldn't expect it to do anything, because you already have that project open. If you want to open it as a file, choose it from the files list at the left of the window. But, when I try to open *.pro.user, it opens properly. In edit mode it doesn't show the files in list view as shown in previous versions. Please see the screenshot. Ah, you can't see that file list. You can hide/show it with Ctrl+0. Nathan ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ATT1..txt ___ 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] cmake environment
On 07/23/2010 07:32 AM, ext celil wrote: I am using cmake to build my project, and in order for my project to build correctly, I need to define several environment variables in ~/.bash_profile. However, under QtCreator it seems that the environment variables are never set. How can I modify the environment variables under which cmake is run inside QtCreator? Which OS, and how are you launching Qt Creator? Kai ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] cmake environment
That solved the problem. Thank you, Alex. This is On 7/22/10 10:36 PM, Alex T. wrote: Check Projects-Run Settings and Projects-Build settings, they have environment sections, just click details and set env vars there. On 23 July 2010 08:32, celil celil...@gmail.com mailto:celil...@gmail.com wrote: I am using cmake to build my project, and in order for my project to build correctly, I need to define several environment variables in ~/.bash_profile. However, under QtCreator it seems that the environment variables are never set. How can I modify the environment variables under which cmake is run inside QtCreator? Thanks, Celil ___ Qt-creator mailing list Qt-creator@trolltech.com mailto: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