Re: [Qt-creator] How to modify output-directory of exe or how to set a working directory?
Then there's the | symbol. In this context, is it a separator for strings or a logical or? Assuming CONFIG contains either debug or release, how is CONFIG(debug, debug|release) different from CONFIG(debug)? CONFIG(debug) returns true if the CONFIG variable contains debug. CONFIG(debug, debug|release) returns true if, out of the mutually-exclusive set of debug and release, the last value set was debug. So for CONFIG = debug release, CONFIG(debug) returns true but CONFIG(debug, debug|release) returns false. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] replace this occurance and stop (like emacs .)
Check the archives; someone else asked this exact question a couple weeks ago. I don't recall what the answer was, though. On Sat, Nov 20, 2010 at 6:00 AM, Jeffrey Newman je...@photorepo.com wrote: Is there a way to replace the occurrence of string as the last replace? Like the . in emacs. As things stand now, after I change the last occurrence of string, the editor wraps and find myself far way from I want to be. thanks Jeffrey ___ 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 build on Solaris
As I recall, Solaris's C++ compiler has almost as many template issues as MSVC6. Is there a Solaris port of gcc? Might try that. /s/ Adam On Tue, Nov 16, 2010 at 8:34 AM, André Pönitz andre.poen...@nokia.com wrote: On Tuesday 16 November 2010 14:34:12 ext Murphy, Sean M. wrote: I'm trying to build QtCreator on Solaris, and I'm hitting the following snag: make cd src/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/src.pro -o Makefile cd src/ make -f Makefile cd libs/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/libs.pro -o Makefile cd libs/ make -f Makefile cd qtconcurrent/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/qtconcurrent.pro -o Makefile cd qtconcurrent/ make -f Makefile /data1/u/murphy/qt-4.7.1/bin/moc -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. ../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/multitask.h -o .moc/release-shared/moc_multitask.cpp CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release-shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. That line does declare a function template and looks correct. Andre' ___ 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] my first request of help
First, this is the Qt Creator mailing list, not the Qt development mailing list (that's qt-interest). Second, Qt 3.3 has been obsolete for years and all new development should be done with Qt 4.x. /s/ Adam On Mon, Nov 15, 2010 at 2:12 PM, Leonel Florin Selles leonel06...@cfg.jovenclub.cu wrote: Hi: I need create and QT application that stay in execution in the system try, i'm usign QT 3.3.8. ___ 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] Extend Qt-creator to recognize source file extension .xc
If the XML file wouldn't be embedded, one could easily adopt it without recompiling. Is it worth to add this on the wishlist in your bug tracker? Better, I think, would be to have a second XML file (in /usr/share or something) in the same format that would get parsed after the one in the resources, to allow a comfortable set of defaults while allowing user customizability. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] dictionary (non-contextual) completion
If I were to implement something like that (not saying I would, I don't have the foggiest where to start on the Creator internals) I would tie dictionary completion to a keystroke so it would (1) be accessible even on something that DOES have contextual completion, and (2) wouldn't use up cycles coming up with a dictionary unless I wanted it. /s/ Adam On Fri, Oct 29, 2010 at 1:43 PM, Cristian Tibirna tibi...@kde.org wrote: Hello Was it ever discussed among the developers of QtCreator, the utility of introducing dictionary completion, as an augmentation to the contextual completion available today? daydreaming What I have in mind is offering vim- (and (X)Emacs- and Kate-) like completion that disregards the context and just returns a list of valid words as found in the current document (or current open documents) in order of proximity. This would be useful in situations when the contextual completion doesn't offer any variant (like inside template class methods). Also, it should only be offered as a last recourse, and never when contextual completion offers at least one variant. I could see also that this kind of completion would be marked differently in the UI (e.g. with a red background). /daydreaming -- Cristian Tibirna KDE developer .. tibi...@kde.org .. http://www.kde.org ___ 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] generate a new interface
The qt-creator mailing list is for questions pertaining specifically to the Qt Creator IDE. Your question is a general Qt question, which needs to be asked on the qt-interest mailing list. /s/ Adam On Sat, Oct 9, 2010 at 3:05 AM, atef gharbi atef.elgha...@gmail.com wrote: Good morning everybody, I am interested with the Qt language which offers many opportunities to generate usefull applications. Unfortunately, I always find difficulty when I work on graphical interface (not especially Qt language). The most problem is how to create a new interface containing some painting elements when I push on a button. Thanks a lot for your help. With my best regards. ___ 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] Qt Creator 2.1 branch
Okay, thanks. :) On Tue, Oct 5, 2010 at 6:56 AM, Kai Koehne kai.koe...@nokia.com wrote: On 10/4/2010 5:00 PM, ext Coda Highland wrote: I thought you needed a -developer-build flag to do that... I could be wrong; I haven't done this in a LONG time, but I seem to remember that flag being in there. With -prefix . you don't have to run make install. You use the Qt directly from it's source directory (or shadow build directory if you've called configure from another directory). -developer-build does this + a lot more: Namely it exports more symbols, and changes the default to -debug (instead of -debug-and-release). Have a look at $QTDIR\configure, it will give you the full story :) Regards Kai /s/ Adam On Mon, Oct 4, 2010 at 8:59 AM, Stephen Chustep...@ju-ju.com wrote: On 10/1/10 4:31 PM, Stephen Chu wrote: On 10/1/10 4:11 PM, kai.koe...@nokia.com wrote: configure your Qt with -prefix '.'. Cool. I didn't know you can do this. Thanks. I tried -prefix '.' over the weekend and it failed at the install. Got this message: g++ -headerpad_max_install_names -arch ppc -arch x86_64 -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -single_module -dynamiclib -compatibility_version 4.7 -current_version 4.7.1 -install_name /qt/lib/QtXml.framework/Versions/4/QtXml_debug -Xarch_x86_64 -mmacosx-version-min=10.5 -Xarch_x86_64 -mmacosx-version-min=10.5 -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-version-min=10.4 -o QtXml_debug .obj/debug-shared/qdom.o .obj/debug-shared/qxml.o .obj/debug-shared/qxmlstream.o -F/qt/lib -L/qt/lib -framework QtCore ld: framework not found QtCore collect2: ld returned 1 exit status I looked at /qt/lib and find there's only a .prl file in QtCore.framework folder. Will try to clean and rebuild it. Wonder if this is a know issue? -- Stephen Chu mailto:step...@ju-ju.com http://www.ju-ju.com ___ 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 -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] Qt Creator 2.1 branch
I thought you needed a -developer-build flag to do that... I could be wrong; I haven't done this in a LONG time, but I seem to remember that flag being in there. /s/ Adam On Mon, Oct 4, 2010 at 8:59 AM, Stephen Chu step...@ju-ju.com wrote: On 10/1/10 4:31 PM, Stephen Chu wrote: On 10/1/10 4:11 PM, kai.koe...@nokia.com wrote: configure your Qt with -prefix '.'. Cool. I didn't know you can do this. Thanks. I tried -prefix '.' over the weekend and it failed at the install. Got this message: g++ -headerpad_max_install_names -arch ppc -arch x86_64 -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -single_module -dynamiclib -compatibility_version 4.7 -current_version 4.7.1 -install_name /qt/lib/QtXml.framework/Versions/4/QtXml_debug -Xarch_x86_64 -mmacosx-version-min=10.5 -Xarch_x86_64 -mmacosx-version-min=10.5 -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-version-min=10.4 -o QtXml_debug .obj/debug-shared/qdom.o .obj/debug-shared/qxml.o .obj/debug-shared/qxmlstream.o -F/qt/lib -L/qt/lib -framework QtCore ld: framework not found QtCore collect2: ld returned 1 exit status I looked at /qt/lib and find there's only a .prl file in QtCore.framework folder. Will try to clean and rebuild it. Wonder if this is a know issue? -- Stephen Chu mailto:step...@ju-ju.com http://www.ju-ju.com ___ 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] Creator destroys my HTML code
Don't use QTextEdit for things that need HTML accuracy. It's not intended for that use -- try QtWebKit if you need actual HTML editing. QTextEdit just uses an HTML subset to provide basic rich text support. /s/ Adam On Mon, Sep 27, 2010 at 7:28 PM, Nikos Chantziaras rea...@arcor.de wrote: Whenever I edit a QTextEdit or QTextBrowser, Creator always utterly destroys it by inserting CSS code, forcing particular fonts and font sizes, ignoring application/system defaults, and other evil things, resulting in breakage on other systems than my own. Is there a way around that feature? I'm using Creator 2.0.1 on Linux. ___ 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] License Templates / DPI=72 + 6pt / *.h- and *.cpp-templates
Set the physical monitor size in your xorg.conf so that (screen width)/(horizontal resolution) and (screen height)/(vertical resolution) are the desired DPI. That should make the -dpi setting unnecessary since that's the calculation used by default anyway. /s/ Adam On Wed, Sep 22, 2010 at 9:37 AM, mailingli...@bluespirit.la wrote: Hello, I have some questions. I'm using qt 4.7.2 and a self-compiled qtcreator 2.0.0: 1) I'm using the license template, but only %YEAR% is working. Things like %FILENAME%, %CLASSNAME% etc. would be nice. What is working - and what is planned? Is there a documentation of this feature? 2) I have some problems with my Debian in the VMWare, which I fix with starting the XServer with -dpi 72. Qt still shows me the huge fonts, which I can workaround with setting the Qt fontsize to 6pt with qtconfig. This works fine for everything, but the texteditor of qtcreator has its own font-size, so I have to set it to 6pt too... but when I open the qtcreator the next time, it's set to 7pt again. Sometimes I have to set the fontsize on every second document I open. I ve installed the qt creator with your installer, but this not-self-compiled qtcreator ignores the qtconfig settings - so I cannot use it. 3) Is there another way, to make qt use of the dpi of X? 4) Is there a way, to use templates when creating new classes - so I have all comments placed in the new header. Thx, Charly ___ 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] License Templates / DPI=72 + 6pt / *.h- and *.cpp-templates
Side note, the physical sizes are measured in millimeters, so remember that 25.4mm = 1in. If you want 72 DPI at 1024x768, your screen should be 361mm x 271mm. /s/ Adam On Wed, Sep 22, 2010 at 10:07 AM, Coda Highland c...@bobandgeorge.com wrote: Set the physical monitor size in your xorg.conf so that (screen width)/(horizontal resolution) and (screen height)/(vertical resolution) are the desired DPI. That should make the -dpi setting unnecessary since that's the calculation used by default anyway. /s/ Adam On Wed, Sep 22, 2010 at 9:37 AM, mailingli...@bluespirit.la wrote: Hello, I have some questions. I'm using qt 4.7.2 and a self-compiled qtcreator 2.0.0: 1) I'm using the license template, but only %YEAR% is working. Things like %FILENAME%, %CLASSNAME% etc. would be nice. What is working - and what is planned? Is there a documentation of this feature? 2) I have some problems with my Debian in the VMWare, which I fix with starting the XServer with -dpi 72. Qt still shows me the huge fonts, which I can workaround with setting the Qt fontsize to 6pt with qtconfig. This works fine for everything, but the texteditor of qtcreator has its own font-size, so I have to set it to 6pt too... but when I open the qtcreator the next time, it's set to 7pt again. Sometimes I have to set the fontsize on every second document I open. I ve installed the qt creator with your installer, but this not-self-compiled qtcreator ignores the qtconfig settings - so I cannot use it. 3) Is there another way, to make qt use of the dpi of X? 4) Is there a way, to use templates when creating new classes - so I have all comments placed in the new header. Thx, Charly ___ 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] New EnvironmentId variable in .creator.user files
From my perspective, it would be preferable to have the build settings and run settings removed from the .user file and store these in separate files like you suggested, which then can be saved in the source tree. I would suggest then that the .user file is stored in the build directory, not in the source tree. I like your thinking, but the build directory isn't a singular location. Creator uses different build directories based on what you're building for, to allow you to have (for example) a desktop build and a mobile simulator build. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] New EnvironmentId variable in .creator.user files
P.S. If we hypothetically did convert our Makefiles to use QMake and Qt Creator for active development, would that obligate us under the full Qt licensing scheme, or not? Of course not, not any more than you're subject to the license of GNU Make if you use that to compile your application. Obviously you have to comply with the licensing if you're distributing qmake and Creator themselves but the products you produce using them don't include any part of the build tools themselves. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] New EnvironmentId variable in .creator.user files
A properly configured .pro file should be able to satisfy your needs; Qt is designed to be able to handle building apps at the command line without needing to use Creator at all, and that doesn't use the .pro.user file, so you should be able to put all of the necessary configuration in the .pro file. /s/ Adam On Fri, Sep 17, 2010 at 5:17 AM, anshul mehta ansme...@gmail.com wrote: I understand that the .pro.user should be shared between users but the build and run settings are stored in pro.user. I want a feature in qtcreator that allows build/run settings in terms of and environmental that any user can setup appropriately and build/run settings can be made part of .pro so that they can be shared. ie. The build directory could be something like $BLDDIR/projectname and user can setup $BLDDIR to desired value before starting Qt Creator and similarly executable to be run in the run settings would be specified as $BLDDIR/projectname/executablename. Regards Anshul On Fri, Sep 17, 2010 at 3:31 PM, Tobias Hunger tobias.hun...@nokia.com wrote: On 16.09.2010 20:46, ext Bryce Schober wrote: Since switching to the head nightlies, my .creator.user files (Generic projects) now have a ProjectExplorer.Project.Updater.EnvironmentId variable that is changing when nothing else is. The ID is used to check which Creator last opened the file. This is to warn about people using the same .user-file in different environments (OSes, computers, etc.). This is going to pretty annoying if it continues to clutter my check-ins. In addition to cluttering up your checkins it should also trigger warnings about sharing a .user-file when loading the project. Please do not check in the .user file. It is highly dependent on the environment and can not get savely shared! Best Regards, Tobias PS: Having an unique ID is a privacy concern, so I want to point out that we do *NOT* use the ID anywhere but in the .user-file and that this is the only UUID we generate. We have thought hard on how to avoid generating one in the first place. Unfortunately this seems to be the only robust way to warn about sharing .user-files. -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] How to assign Layout to Tab widget
Did you try selecting the tab page in the object inspector? /s/ Adam On Fri, Sep 17, 2010 at 6:02 AM, yogesh upreti yogesh.upr...@gmail.com wrote: This doesn't work. I have tried it.. This assigns the selected layout to the parent widget (instance of QTabWidget) not to the tab-page. tab page still shows Missing layout icon Regards, Ygesh Upreti Message: 2 Date: Fri, 17 Sep 2010 08:27:37 +0200 From: Nicolas Arnaud-Cormos nicolas.arnaud-cor...@kdab.com Subject: Re: [Qt-creator] How to assign Layout to Tab widget To: qt-creator@trolltech.com Message-ID: 201009170827.38707.nicolas.arnaud-cor...@kdab.com Content-Type: Text/Plain; charset=iso-8859-15 On Friday 17 September 2010 00:38:10 yogesh upreti wrote: Hallo Group, I want in my application to add horizontal layout in one of the tab (part of a QTabWidget). Qt-Creator is not letting me do that. Is there any tricks there? I can select all widgets and put them in a Layout, but when I want to assign a layout to the whole tab (one of the tab of the tab widget), It's not working Hi, You need to select the tab (either by clicking on an empty area or in the object panel), and then choose the layout you want. You'll see the icon chnages in the object panel, with your new icon (instead of the missing layout icon). Cheers, Nicolas ___ 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] New EnvironmentId variable in .creator.user files
For local, per-machine settings that you would otherwise provide on the qmake command line (i.e. it would store macx-g++42 where you might type qmake -spec macx-g++42 -- you wouldn't WANT to store this in the project though since it would be WRONG for anyone not running Mac), and to store things like editor layouts and other IDE settings that aren't actually part of the project but rather part of your personal environment. /s/ Adam On Fri, Sep 17, 2010 at 2:13 PM, Danny Price deepblue...@googlemail.com wrote: If that is the case, what is the purpose of the pro.user files? On Fri, Sep 17, 2010 at 7:28 AM, Coda Highland c...@bobandgeorge.com wrote: A properly configured .pro file should be able to satisfy your needs; Qt is designed to be able to handle building apps at the command line without needing to use Creator at all, and that doesn't use the .pro.user file, so you should be able to put all of the necessary configuration in the .pro file. /s/ Adam ___ 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] New EnvironmentId variable in .creator.user files
You know, I have to ask why you feel the need to use a generic project in the first place if you're just going to tie the build system to Creator. Usually people want to use bare Makefiles in order to be able to customize the build process in the makefile itself -- and certainly makefiles are expressive enough to do everything you could possibly want it to do. What part of your use case isn't accommodated here? What is it that you're trying to do that can't be done in the makefile itself? /s/ Adam On Fri, Sep 17, 2010 at 1:33 PM, Bryce Schober bryce.scho...@gmail.com wrote: I'm extremely disappointed. I'm using Qt Creator exclusively for generic Makefile development. It has had its warts for that purpose, but this makes it much worse, because now there is no way for me to share build configurations with others. This is going to completely kill my usage scenario if it continues. Maybe this is just one of those you're not our customer situations, but it's pretty disappointing. Now generic project support is even more of an orphan than it was. On Fri, Sep 17, 2010 at 7:28 AM, Coda Highland c...@bobandgeorge.com wrote: A properly configured .pro file should be able to satisfy your needs; Qt is designed to be able to handle building apps at the command line without needing to use Creator at all, and that doesn't use the .pro.user file, so you should be able to put all of the necessary configuration in the .pro file. /s/ Adam On Fri, Sep 17, 2010 at 5:17 AM, anshul mehta ansme...@gmail.com wrote: I understand that the .pro.user should be shared between users but the build and run settings are stored in pro.user. I want a feature in qtcreator that allows build/run settings in terms of and environmental that any user can setup appropriately and build/run settings can be made part of .pro so that they can be shared. ie. The build directory could be something like $BLDDIR/projectname and user can setup $BLDDIR to desired value before starting Qt Creator and similarly executable to be run in the run settings would be specified as $BLDDIR/projectname/executablename. Regards Anshul On Fri, Sep 17, 2010 at 3:31 PM, Tobias Hunger tobias.hun...@nokia.com wrote: On 16.09.2010 20:46, ext Bryce Schober wrote: Since switching to the head nightlies, my .creator.user files (Generic projects) now have a ProjectExplorer.Project.Updater.EnvironmentId variable that is changing when nothing else is. The ID is used to check which Creator last opened the file. This is to warn about people using the same .user-file in different environments (OSes, computers, etc.). This is going to pretty annoying if it continues to clutter my check-ins. In addition to cluttering up your checkins it should also trigger warnings about sharing a .user-file when loading the project. Please do not check in the .user file. It is highly dependent on the environment and can not get savely shared! Best Regards, Tobias PS: Having an unique ID is a privacy concern, so I want to point out that we do *NOT* use the ID anywhere but in the .user-file and that this is the only UUID we generate. We have thought hard on how to avoid generating one in the first place. Unfortunately this seems to be the only robust way to warn about sharing .user-files. -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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 -- Bryce Schober ___ 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] New EnvironmentId variable in .creator.user files
And the .user files aren't project files. They're intended for local preferences, not global build settings. The one thing Creator could add that would really make a difference would be for Creator to be able to identify build targets in the makefile other than just the default one and clean -- that way you could put all of the relevant logic in the makefile and simply select the appropriate target. You wouldn't be the first user I've talked to that would find this behavior useful -- one of the developers of Leges Motus has expressed that this was the one shortcoming that kept Creator from being suitable for that project. /s/ Adam On Fri, Sep 17, 2010 at 3:35 PM, Bryce Schober bryce.scho...@gmail.com wrote: Well, I suppose it is a bit of a collision between the deficiencies of our Makefiles and Qt Creator... but different build and run modes are nice to remember in a project file. And when they can be reasonably expressed, depending on relative paths or environmental variables to abstract away the user-specificity, then of course you'd want them to be shared. If for no other reason than that it's a pain for even a single user to copy them around when they're maintaining multiple sandboxes. On Fri, Sep 17, 2010 at 1:02 PM, Coda Highland c...@bobandgeorge.com wrote: You know, I have to ask why you feel the need to use a generic project in the first place if you're just going to tie the build system to Creator. Usually people want to use bare Makefiles in order to be able to customize the build process in the makefile itself -- and certainly makefiles are expressive enough to do everything you could possibly want it to do. What part of your use case isn't accommodated here? What is it that you're trying to do that can't be done in the makefile itself? /s/ Adam On Fri, Sep 17, 2010 at 1:33 PM, Bryce Schober bryce.scho...@gmail.com wrote: I'm extremely disappointed. I'm using Qt Creator exclusively for generic Makefile development. It has had its warts for that purpose, but this makes it much worse, because now there is no way for me to share build configurations with others. This is going to completely kill my usage scenario if it continues. Maybe this is just one of those you're not our customer situations, but it's pretty disappointing. Now generic project support is even more of an orphan than it was. On Fri, Sep 17, 2010 at 7:28 AM, Coda Highland c...@bobandgeorge.com wrote: A properly configured .pro file should be able to satisfy your needs; Qt is designed to be able to handle building apps at the command line without needing to use Creator at all, and that doesn't use the .pro.user file, so you should be able to put all of the necessary configuration in the .pro file. /s/ Adam On Fri, Sep 17, 2010 at 5:17 AM, anshul mehta ansme...@gmail.com wrote: I understand that the .pro.user should be shared between users but the build and run settings are stored in pro.user. I want a feature in qtcreator that allows build/run settings in terms of and environmental that any user can setup appropriately and build/run settings can be made part of .pro so that they can be shared. ie. The build directory could be something like $BLDDIR/projectname and user can setup $BLDDIR to desired value before starting Qt Creator and similarly executable to be run in the run settings would be specified as $BLDDIR/projectname/executablename. Regards Anshul On Fri, Sep 17, 2010 at 3:31 PM, Tobias Hunger tobias.hun...@nokia.com wrote: On 16.09.2010 20:46, ext Bryce Schober wrote: Since switching to the head nightlies, my .creator.user files (Generic projects) now have a ProjectExplorer.Project.Updater.EnvironmentId variable that is changing when nothing else is. The ID is used to check which Creator last opened the file. This is to warn about people using the same .user-file in different environments (OSes, computers, etc.). This is going to pretty annoying if it continues to clutter my check-ins. In addition to cluttering up your checkins it should also trigger warnings about sharing a .user-file when loading the project. Please do not check in the .user file. It is highly dependent on the environment and can not get savely shared! Best Regards, Tobias PS: Having an unique ID is a privacy concern, so I want to point out that we do *NOT* use the ID anywhere but in the .user-file and that this is the only UUID we generate. We have thought hard on how to avoid generating one in the first place. Unfortunately this seems to be the only robust way to warn about sharing .user-files. -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin
Re: [Qt-creator] All libraries statically linked
If I recall correctly, CONFIG += static is sufficient with qmake, but again you need statically-built versions of all of the libraries you need, including Qt. /s/ Adam On Thu, Sep 16, 2010 at 12:40 PM, Daniel Molkentin daniel.molken...@nokia.com wrote: On 9/16/2010 3:49 PM, ext Paul Smith wrote: With KDevelop, there is an option All static libraries to do that automatically; It changes the project files to add linker instructions to use static instead of dynamic libraries? I guess so. I cannot find a similar option in QtCreator. You need a static build of Qt to start with, then in the .pro use e.g. the LIBS variable to directly include the .a files. Is that true even when I use a 'Qt4 console application' project? Yes, as soon as you use any Qt functionality, including QCoreApplication and friends. KDevelop might offer help there, but it still requires a statically linked Qt. Daniel -- Daniel Molkentin, Software Engineer, Nokia, Qt Development Frameworks website: http://qt.nokia.com Rudower Chaussee 13, DE-12489 Berlin Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] How to put individual classes to sub dir
You can make frames.pri include frame1.pri and frame2.pri; just take the technique I showed you and extend upon it. I knew what I was showing you didn't completely match; I'm not doing your homework for you. :P /s/ Adam On Mon, Aug 16, 2010 at 11:42 PM, Jakov dkym...@gmail.com wrote: Dear Adam, It works! Thank you a lot! However, the layout is not completely as I expected. Or my expected layout is impossible for this current Qt Creator version (2.0.0)? I'd like the hierarchical layout should be like this: Prj_root .|__ Frames ..|__Frame1 .|__Forms .|__frame1.ui .|__Headers .|__frame1.h .|__Sources .|__frame1.cpp .|__Frame2 .|__Forms .|__frame2.ui .|__Headers .|__frame2.h .|__Sources .|__frame2.cpp ...|__Forms |__ex1.ui ...|__Headers |__ex1.h ...|__Sources |__ex1.cpp |__main.cpp If QtCreator supports this, it's great. And I can try another layout that I tried some days ago, but failed: Group Project .|__ Main Project ..|__ main.pro ..|__ other files .|__ Share ..|__ SharedForm1 ..|__ SharedForm2 In which, Main Project uses SharedForm1, 2, etc. Thanks so much for taking time helping me. Best regards, -- Jakov On Tue, Aug 17, 2010 at 9:19 AM, Coda Highland c...@bobandgeorge.com wrote: My thought on the matter would be something like this: ex1.pro: include(Frames/Frames.pri) Frames/Frames.pri: HEADERS += Frames/Frame1/Frame1.h Frames/Frame2/Frame2.h SOURCES += Frames/Frame1/Frame1.cpp Frames/Frame2/Frame2.cpp FORMS += Frames/Frame1/Frame1.ui Frames/Frame2/Frame2.ui et cetera. Notice that you still need to use the path relative to ex1.pro, not to the .pri file -- this is a fairly common mistake. /s/ Adam On Mon, Aug 16, 2010 at 6:33 PM, Jakov dkym...@gmail.com wrote: Hello Alan, I'm editing the pri files. I search the old archive, and find out that whenever I include a .pri file, Qt Creator creates a virtual directory (a node) in the Projects window (on the left side). The main .pro file will include the frames.pri, so it would create the Frames node in the window: + ex1.pro: include( Frames/Frames.pri) + frames.pri: I think the frames.pri should do the same: include(Frames/Frame1/frame1.pri), but it doesn't work... So I left frames.pri empty. At this step, if I put a class in Frames dir, the project works fine. But I do want to make a lower level: adding Frame1 and Frame2 directories (which include their own classes) within Frames. There's no link line yet, Alan. Thanks for your quick reply! Jakov On Tue, Aug 17, 2010 at 6:20 AM, alan.westbr...@nokia.com wrote: Ahh, I see. What does the first .pri file look like? Do you see the frame.cpp files compile from the compiler output? What does your link line look like? Alan On Aug 16, 2010, at 3:54 PM, ext Jakov wrote: Dear Adam, Thanks for your reply. I remove the subdirs already, to make it a normal app project. I try-and-error many ways, but the layout is not as expected. Could you please suggest me the config or give me the document of using .pro and .pri file? The idea is, I want to group individual classes (.h, .cpp, .ui) in a separate directory (to have a better look, easy to find/edit/manage...) within the main project dir, or even at the same directory level with main project dir. I'd like to thank Alan, but there's no libs yet. They're just pure UI classes, just at lower directory level, as compared to main project directory. I'll not include every single .h, .cpp, and .ui in the HEADERS, SOURCES, FORMS in the main .pro, as those files will be included in corresponding nodes (Headers, Sources, Forms) separately. I'm looking forward to your guide... In the meantime, I'll try-'n-error again. I look at demo and examples in Qt SDK, but there's no helpful examples... Thank you again. BR, Jakov On Mon, Aug 16, 2010 at 9:31 PM, Coda Highland c...@bobandgeorge.com wrote: First off, don't use a subdirs project for that. Just use a normal app project and use relative paths in the .pro file. If you want to organize the .pro file you can use include() with some .pri files -- Creator knows how to sort this out. (Note that .pri files consider paths relative to the main .pro file, not to itself.) Second, INCLUDEPATH += Frames in the main .pro file (or possibly in frames.pri) so that Frame1/Frame1.h can be found inside of the Frames directory. /s/ Adam On Mon, Aug 16, 2010
Re: [Qt-creator] How to put individual classes to sub dir
First off, don't use a subdirs project for that. Just use a normal app project and use relative paths in the .pro file. If you want to organize the .pro file you can use include() with some .pri files -- Creator knows how to sort this out. (Note that .pri files consider paths relative to the main .pro file, not to itself.) Second, INCLUDEPATH += Frames in the main .pro file (or possibly in frames.pri) so that Frame1/Frame1.h can be found inside of the Frames directory. /s/ Adam On Mon, Aug 16, 2010 at 8:51 AM, Jakov dkym...@gmail.com wrote: Hello Group, I have a question about organizing subdir/nested classes in Qt Creator. I intend to use dozens classes (inherit from QFrame), to be promoted later. I want to have each of them grouped in a separate folder (dir). Like this: PROJECT_ROOT - Frames - - frames.pro - - Frame1 frame1.h frame1.cpp frame1.ui frame1.pri - Frame2 frame2.h frame2.cpp frame2.ui frame2.pri - ex1.pro - ex1.h - ex2.cpp File frame?.pri indicates HEADERS, SOURCES, FORMS File frames.pro simply includes those *.pri files. File ex1.pro: + TEMPLATE = app subdirs + SUBDIRS += Frames That's it. The problem comes when I'm trying to use frame1, frame2 in the main project (ex1). Although I specify INCLUDEPATH += Frames/Frame1 in the ex1.pro, ex1 can see frame1.h, but it doesn't know about frame1.cpp, so an error thrown: undefined reference to `TFrame1::TFrame1(QWidget*)' I'll try to summary the problem: how to put individual classes in subdir freely? Please help me. Thank you in advance!!! Best regards, Jakov ___ 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] How to put individual classes to sub dir
My thought on the matter would be something like this: ex1.pro: include(Frames/Frames.pri) Frames/Frames.pri: HEADERS += Frames/Frame1/Frame1.h Frames/Frame2/Frame2.h SOURCES += Frames/Frame1/Frame1.cpp Frames/Frame2/Frame2.cpp FORMS += Frames/Frame1/Frame1.ui Frames/Frame2/Frame2.ui et cetera. Notice that you still need to use the path relative to ex1.pro, not to the .pri file -- this is a fairly common mistake. /s/ Adam On Mon, Aug 16, 2010 at 6:33 PM, Jakov dkym...@gmail.com wrote: Hello Alan, I'm editing the pri files. I search the old archive, and find out that whenever I include a .pri file, Qt Creator creates a virtual directory (a node) in the Projects window (on the left side). The main .pro file will include the frames.pri, so it would create the Frames node in the window: + ex1.pro: include( Frames/Frames.pri) + frames.pri: I think the frames.pri should do the same: include(Frames/Frame1/frame1.pri), but it doesn't work... So I left frames.pri empty. At this step, if I put a class in Frames dir, the project works fine. But I do want to make a lower level: adding Frame1 and Frame2 directories (which include their own classes) within Frames. There's no link line yet, Alan. Thanks for your quick reply! Jakov On Tue, Aug 17, 2010 at 6:20 AM, alan.westbr...@nokia.com wrote: Ahh, I see. What does the first .pri file look like? Do you see the frame.cpp files compile from the compiler output? What does your link line look like? Alan On Aug 16, 2010, at 3:54 PM, ext Jakov wrote: Dear Adam, Thanks for your reply. I remove the subdirs already, to make it a normal app project. I try-and-error many ways, but the layout is not as expected. Could you please suggest me the config or give me the document of using .pro and .pri file? The idea is, I want to group individual classes (.h, .cpp, .ui) in a separate directory (to have a better look, easy to find/edit/manage...) within the main project dir, or even at the same directory level with main project dir. I'd like to thank Alan, but there's no libs yet. They're just pure UI classes, just at lower directory level, as compared to main project directory. I'll not include every single .h, .cpp, and .ui in the HEADERS, SOURCES, FORMS in the main .pro, as those files will be included in corresponding nodes (Headers, Sources, Forms) separately. I'm looking forward to your guide... In the meantime, I'll try-'n-error again. I look at demo and examples in Qt SDK, but there's no helpful examples... Thank you again. BR, Jakov On Mon, Aug 16, 2010 at 9:31 PM, Coda Highland c...@bobandgeorge.com wrote: First off, don't use a subdirs project for that. Just use a normal app project and use relative paths in the .pro file. If you want to organize the .pro file you can use include() with some .pri files -- Creator knows how to sort this out. (Note that .pri files consider paths relative to the main .pro file, not to itself.) Second, INCLUDEPATH += Frames in the main .pro file (or possibly in frames.pri) so that Frame1/Frame1.h can be found inside of the Frames directory. /s/ Adam On Mon, Aug 16, 2010 at 8:51 AM, Jakov dkym...@gmail.com wrote: Hello Group, I have a question about organizing subdir/nested classes in Qt Creator. I intend to use dozens classes (inherit from QFrame), to be promoted later. I want to have each of them grouped in a separate folder (dir). Like this: PROJECT_ROOT - Frames - - frames.pro - - Frame1 frame1.h frame1.cpp frame1.ui frame1.pri - Frame2 frame2.h frame2.cpp frame2.ui frame2.pri - ex1.pro - ex1.h - ex2.cpp File frame?.pri indicates HEADERS, SOURCES, FORMS File frames.pro simply includes those *.pri files. File ex1.pro: + TEMPLATE = app subdirs + SUBDIRS += Frames That's it. The problem comes when I'm trying to use frame1, frame2 in the main project (ex1). Although I specify INCLUDEPATH += Frames/Frame1 in the ex1.pro, ex1 can see frame1.h, but it doesn't know about frame1.cpp, so an error thrown: undefined reference to `TFrame1::TFrame1(QWidget*)' I'll try to summary the problem: how to put individual classes in subdir freely? Please help me. Thank you in advance!!! Best regards, Jakov ___ 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 ATT1..txt ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Error with unattended install was: Error when trying to install commercial Qt Creator package
There are protocols in place for these things for just such a reason. Your attitude here is really quite unprofessional and you're not likely to get a positive response from anyone that way, but the commercial support people are PAID to put up with people who are already pissed off. The people who monitor the mailing lists and the bugtrackers don't have authority to promote user-reported issues up to FIX THIS RIGHT NOW status -- the people who pay the bills at Nokia, however, do. This mailing list is primarily a matter of the open-source users -- and for what it's worth you're perfectly free to use open-source Creator with commercial Qt, so unless the non-Creator Qt package is broken too you have your workaround right there. And if the non-Creator Qt package is broken too, build it from source. It's not like it takes a long time to build with -no-webkit -nomake demos -nomake examples. /s/ Adam On Wed, Jul 28, 2010 at 4:55 PM, Martin Konold martin.kon...@erfrakon.de wrote: Am 28.07.2010 21:14, schrieb Oswald Buddenhagen: Hi Ossi, that is the answer one can expect from the official commercial support channel, not from the developer list. Look, this little bug needs to be fixed by the developers not by the commercial support guys. (The reporting customer is paying for about 10 commercial support contracts but going this route would just put extra burden on many more people without any real gain.) On the other hand I just learned from the bug report that this issue was already reported in December last year for the previous version 1.3.0. This makes me wonder why it was not fixed before the release of the new stable version? Yours, -- martin P.S.: In case you are unwilling to maintain this license check stuff you may consider dropping it altogether. But if you decide to keep the license check you are obliged to maintain it permanently. ___ 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] Embedded GUI Designer
Easiest way is to apply a stylesheet. Something like QWidget { font-size: 12pt; } should be a start. However, the font sizes should automatically pick up your system style settings. /s/ Adam On Sat, Jul 24, 2010 at 9:09 AM, Petric Frank pfr...@gmx.de wrote: Hello, is there a possibility to change the default font size of all GUI elements (i.e. combo boxes, line edits, group frames, ...) to an other value ? Not only when the GUI have already been designed - also the ones newly created. In short: - GUI already designed - change font size of all elements - new widgets - create them with an other font size by default Currently the widgets are always created with a font size of 9. kind regards Petric ___ 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] Embedded GUI Designer
Well, you could use QApplication::setFont() but that won't show in Designer. You could set the font on the top-level widget and it'll get inherited by its children, but not everything honors the inheritance. The stylesheet is guaranteed to work, but it'll override any other font specifications you may have set. As said, the best way to do it is to leave it alone and let Qt ask your system theme what to do, unless you're intentionally TRYING not to fit in with the other programs on your computer. /s/ Adam On Sat, Jul 24, 2010 at 12:38 PM, Petric Frank pfr...@gmx.de wrote: Hello, and there is no way to apply the new font size to all widgets of an existing *.ui file without using a stylesheet ? regards Petric On Saturday, 24. July 2010 17:29:08 Coda Highland wrote: Easiest way is to apply a stylesheet. Something like QWidget { font-size: 12pt; } should be a start. However, the font sizes should automatically pick up your system style settings. /s/ Adam On Sat, Jul 24, 2010 at 9:09 AM, Petric Frank pfr...@gmx.de wrote: Hello, is there a possibility to change the default font size of all GUI elements (i.e. combo boxes, line edits, group frames, ...) to an other value ? Not only when the GUI have already been designed - also the ones newly created. In short: - GUI already designed - change font size of all elements - new widgets - create them with an other font size by default Currently the widgets are always created with a font size of 9. ___ 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
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] Ability to specify custom tools
I wouldn't want, for instance, make docs to be run as part of my normal build process. I would also like to see this feature to deal with non-trivial Makefile-based projects, so custom steps could be added to invoke stuff that the built-in functions don't touch. /s/ Adam On Wed, Jul 21, 2010 at 3:02 AM, Danny Price deepblue...@googlemail.com wrote: If you want a custom tool to run automatically as part of a build, qmake has the QMAKE_POST_LINK variable to which you can pass a command line program name and options. On Wed, Jul 21, 2010 at 8:06 AM, Litkevich Yuriy lit-u...@yandex.ru wrote: Please make the possibility of creating custom tools. Example: Specify field Name = Make debug Specify field Command = make debug ... This name appears in the Tools menu. When I click on the Make debug item, the corresponding command is executed. It would be very convenient to realize the establishment of custom tools. Which would appear as a submenu. Attached screenshot of Programmer's Notepad 2, which I use to write programs. ___ 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] Latest Windows Build?
I believe earlier on the ML it was stated that the Windows builds are currently failing autotests or something. /s/ Adam On Wed, Jul 21, 2010 at 9:21 AM, Robert Caldecott robert.caldec...@gmail.com wrote: The most up-to-date Windows build of Qt Creator I can find is from July 12th - is this correct? Are there plans for a regular nightly Windows build? ___ 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] parallel processing in make
I can't imagine why Creator couldn't guess at a default value anyway; just ask QThreadPool what the ideal number of threads is. :P Actually I can't imagine why make couldn't guess at a default value by checking the number of cores :P (Our little project ibjom, a replacement for nmake on Windows, does exactly that.) But isn't that what QThread::idealThreadCount() DOES? :P Doesn't make automatically use all available cores if the 'j' argument is not set? I'm sure I read that somewhere. No, without specifying an argument it runs as many parallel tasks as possible, limited only by dependency tracking. Good way to choke a system. Not a mistake I'll make twice. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] parallel processing in make
On Fri, Jul 16, 2010 at 7:08 AM, Coda Highland c...@bobandgeorge.com wrote: I can't imagine why Creator couldn't guess at a default value anyway; just ask QThreadPool what the ideal number of threads is. :P Actually I can't imagine why make couldn't guess at a default value by checking the number of cores :P (Our little project ibjom, a replacement for nmake on Windows, does exactly that.) But isn't that what QThread::idealThreadCount() DOES? :P I see I misread what you said. No, actually, make probably can't do that. I've seen way too many projects that don't have the dependency tracking set up right that fail when parallel builds are in use, which is probably enough to make the GNU folks refuse to make the default behavior incompatible. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] parallel processing in make
Actually, if Creator can do it with QThreadPool, why can't qmake do it with QThreadPool? Then my Makefile would always have the right -j argument for the machine it was created on. Because you can't define the -j flag in the makefile itself; it's only recognized as an environment variable or as a command line parameter. Actually, I think he meant: j argument present but not set. Such as make -j. And yes, that should automagically use all available cores. As I described earlier, it simply does everything in parallel. It doesn't restrict how many processes it spawns, which for any sizable project means you're going to have dozens of compilers all at each others' throats. make -j is a bad idea and in my opinion shouldn't exist. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Syntax highlight doesn't understand C99 initializers?
And for what it's worth, C and C++ are diverging further; C++0x doesn't pick up that syntax and actually introduces a new initializer syntax. /s/ Adam On Thu, Jul 15, 2010 at 6:47 PM, Danny Price deepblue...@googlemail.com wrote: Oh that's a shame. On 16 Jul 2010, at 00:05, Coda Highland wrote: That may be valid C99 syntax but it's not valid C++03 syntax. Creator only supports C++. /s/ Adam On Thu, Jul 15, 2010 at 5:43 PM, Danny Price deepblue...@googlemail.com wrote: I'm using Creator 2.0 with a C99 program and have the following demo structure: typedef struct { char name[20]; int ID; int age; FILE *record; } Employee; Employee emp = {.ID=0, .record=NULL}; This is valid C99 code but Creator underlines the initializer line in red with the error 'expected token '} ' got '.' Is this a bug? The code compiles fine without errors. I'm using GCC 4.2 on OS 10.6.2 and have added the QMAKE_CFLAGS += -std=c99 to the .pro file. ___ 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] parallel processing in make
I can't imagine why Creator couldn't guess at a default value anyway; just ask QThreadPool what the ideal number of threads is. :P /s/ Adam On Thu, Jul 15, 2010 at 8:09 PM, Carter, Nathan ncar...@bentley.edu wrote: Is there a way to tell Creator to use make -j N for some N in all projects? I know that I can change it on a per-project basis, but since it's a value that's pretty much just contingent on how many cores my machine has, I'd like to just say please use all cores all the time. I couldn't find this in the options. Did I miss it or should I file a request for it? (Or I could set MAKEFLAGS=-j 4 in my environment, but I guess I'm not sure where Qt Creator gets its environment from in OS X, when launched from Finder rather than the command line...maybe from my bash .profile?? I have no idea.) 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] Build progress bar usefulness
So running 'make -n' before each proper 'make', i.e. spending 50 more seconds when building e.g. Creator, is needed after all? No, we don't actually know whether it takes 50 seconds without the -B switch. Does it? It will if you've just done a fresh checkout, a make clean, or used the rebuild command. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Build progress bar usefulness
Qt itself takes over 3 minutes on that same machine, though. There may be a simpler way to guess at it, at least as a heuristic... /s/ Adam On Wed, Jul 14, 2010 at 8:37 PM, Carter, Nathan ncar...@bentley.edu wrote: So running 'make -n' before each proper 'make', i.e. spending 50 more seconds when building e.g. Creator, is needed after all? No, we don't actually know whether it takes 50 seconds without the -B switch. Does it? It will if you've just done a fresh checkout, a make clean, or used the rebuild command. Frankly, if a huge project like Creator takes only 50 seconds on an old machine to do make -B -n, then I'd say for most projects (smaller than Creator) on most machines (newer than André said his is) in most circumstances (not full rebuilds), the time will be worth it. Of course, you can always make the feature user-toggleable. I, for one, would like to see it, as would the OP. 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] Problems building with Qt Creator
Actually this would have failed if you had been building without Qt Creator as well. Your project isn't linking to QtNetwork because you need to add network to the QT += line. /s/ Adam On Tue, Jul 13, 2010 at 7:05 AM, j...@student.dei.uc.pt wrote: Hi all, I'm doing a simple login dialog and since I tried to use QTcpSockets I've been having some problems building my project. I receive these errors: logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: virtual __thiscall QTcpSocket::~QTcpSocket(void) (__imp_??1QTcpSocket@@u...@xz) referenced in function public: virtual __thiscall LoginDialog::~LoginDialog(void) (??1LoginDialog@@u...@xz) logindialog.obj:: error: unresolved external symbol __declspec(dllimport) public: __thiscall QTcpSocket::QTcpSocket(class QObject *) (__imp_??0QTcpSocket@@q...@pavqobject@@@Z) referenced in function public: __thiscall LoginDialog::LoginDialog(class QWidget *) (??0LoginDialog@@q...@pavqwidget@@@Z) debug\Backoffice.exe:: error: 2 unresolved externals I'm using Qt Creator in Windows XP 32 bits. From what I found online, similar problems were solved by reinstalling Qt, adding settings to the .obj file, disabling shadow building in the pro.user file... I tried the last two solutions, none worked. The best I got was no errors but the building stopped and consequently was not completed. Anyone know how to solve this. If anyone knows, please sahre it with me, because my work is getting delayed :| I will include the project files as attachments, since it's only a login dialog and there's only a few lines of code on it. Thanks in advance, João This message was sent using IMP, the Internet Messaging Program. ___ 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] new C++ indenter: request for feedback
You can build QtWebKit that fast? *blink* I'd believe the 20 minute figure if you disable QtWebKit but I think Creator needs it. /s/ Adam On Thu, Jul 8, 2010 at 1:36 PM, Nikos Chantziaras rea...@arcor.de wrote: Hours? It only needs about 30 minutes to build on an (by now) old Core 2 Duo. I even got it to 20 minutes if I disable stuff I don't need. It's really fast and easy to build your own binaries. I highly recommend it :) On 07/08/2010 09:30 PM, Coda Highland wrote: Seriously, if you've got reasonably modern hardware the whole rebuild process should only take a couple hours (unless you're building four-way universal binaries or something, but that's just silly if you're not intending to distribute). /s/ Adam On Thu, Jul 8, 2010 at 1:14 PM,kai.koe...@nokia.com wrote: Bryce Schober wrote on Thursday, July 08, 2010 6:51 PM: Too bad we don't get master binary snapshots. Maybe I should repeat this mantra indefinitely. ;-) I think we got the point now :) We have some dedicated machines here for the nightly builds. They are however building from the 2.0 branch, because that's were the next release will come from (see e-mail from Eike a while ago). And we AFAIK don't have the resources to build two in configurations in parallel. Anyhow, out of curiosity: Why do you push so much for nightly builds, in contrast to compiling yourself? It's true that you might have to compile Qt yourself then once, but then updating / recompiling creator afterwards isn't really a big hassle. Kai ___ 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] new C++ indenter: request for feedback
I have two dual-core Xeon 2.66GHz and build with five threads and it only takes me ~45 minutes to build Qt without WebKit; did you forget to disable demos and examples? /s/ Adam On Thu, Jul 8, 2010 at 2:32 PM, Michael Jackson mike.jack...@bluequartz.net wrote: 30 Minutes? For all of Qt? What hardware are you building on? I have an 8 way Xeon Nehalem using GCC with 16 threads and it takes at least an hour or so to build with WebKit disabled... Mike Jackson On 7/8/10 3:00 PM, in article aanlktilfeinaqca9_lm9iw5ezkepn_nyoysgeds7x...@mail.gmail.com, Coda Highland wrote: You can build QtWebKit that fast? *blink* I'd believe the 20 minute figure if you disable QtWebKit but I think Creator needs it. /s/ Adam On Thu, Jul 8, 2010 at 1:36 PM, Nikos Chantziaras rea...@arcor.de wrote: Hours? It only needs about 30 minutes to build on an (by now) old Core 2 Duo. I even got it to 20 minutes if I disable stuff I don't need. It's really fast and easy to build your own binaries. I highly recommend it :) On 07/08/2010 09:30 PM, Coda Highland wrote: Seriously, if you've got reasonably modern hardware the whole rebuild process should only take a couple hours (unless you're building four-way universal binaries or something, but that's just silly if you're not intending to distribute). /s/ Adam On Thu, Jul 8, 2010 at 1:14 PM,kai.koe...@nokia.com wrote: Bryce Schober wrote on Thursday, July 08, 2010 6:51 PM: Too bad we don't get master binary snapshots. Maybe I should repeat this mantra indefinitely. ;-) I think we got the point now :) We have some dedicated machines here for the nightly builds. They are however building from the 2.0 branch, because that's were the next release will come from (see e-mail from Eike a while ago). And we AFAIK don't have the resources to build two in configurations in parallel. Anyhow, out of curiosity: Why do you push so much for nightly builds, in contrast to compiling yourself? It's true that you might have to compile Qt yourself then once, but then updating / recompiling creator afterwards isn't really a big hassle. Kai ___ 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] Qt Mobile Application
Please direct your question to the qt-interest mailing list as this list is for Qt Creator questions in specific. Thank you, /s/ Adam On Tue, Jul 6, 2010 at 6:24 AM, dhk dhk...@optonline.net wrote: Is there a good reference on making a simple Qt mobile application? It should be very basic. In addition, documentation on how to upload an application to the device is needed. Thanks, --dhk ___ 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] Is there a Try and Catch method in QT
I know this is the wrong mailing list but I will caution that Qt is not exception-safe (and doesn't even have to be compiled with exception support enabled) and throwing exceptions through Qt code (for instance, in a slot or in an event handler) has negative effects. It's possible to safely use exceptions (QtConcurrent uses them internally for instance) but you need to make sure to catch them before it crosses Qt code. /s/ Adam On Wed, Jun 30, 2010 at 8:05 PM, Carter, Nathan ncar...@bentley.edu wrote: This is actually the Qt-creator mailing list, not the Qt mailing list. But I'll answer your question anyway. In the future, though, ask Qt questions over there. (It's called qt-interest and shows up if you search for that term.) The QString::toDouble() method does not throw an exception if it gets text that's not a double. Instead, it has the ok parameter to let you know that information. See the documentation (inside Qt-creator!) for QString::toDouble() to see how to use the ok parameter to do your test, instead of try-catch. But yes, the very fact that your code compiled tells you that C++ (and hence Qt) support try-catch structures. Nathan On Jun 30, 2010, at 9:01 PM, Diego Turcios wrote: Hi guys I thinks this is the right mailing list for my doubt. I am working on a small application in QT. But right now I have the following problem. I have a line edit, and I want to manipulate the values so only numbers (doubles) can be written on this line edit. I was trying something like this double quantity; try { quantity=ui-LEPrecio-text().toDouble(); } catch(QString error) { QMessageBox msgBox; msgBox.setText(error); msgBox.exec(); } After doing this. I am planning to manipulate the double value, but this doesn't work. If I write hello world on the line edit. Supposly it converts it, and it doesn't work. Any idea ;) Diego Turcios DiegoTc Ubuntu User # 27518 --- Mis Blogs http://diegoturcios.wordpress.com/ https://wiki.ubuntu.com/DiegoTurcios -- Recuerden Dios siempre esta presente: http://sagradocorazondejesus-diegotc.blogspot.com/ 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] Is there a Try and Catch method in QT
One last comment -- toDouble() takes a bool* parameter to indicate success or failure; as mentioned, Qt (except for Concurrent) doesn't use exceptions. /s/ Adam On Wed, Jun 30, 2010 at 8:01 PM, Diego Turcios diegoturcio...@gmail.com wrote: Hi guys I thinks this is the right mailing list for my doubt. I am working on a small application in QT. But right now I have the following problem. I have a line edit, and I want to manipulate the values so only numbers (doubles) can be written on this line edit. I was trying something like this double quantity; try { quantity=ui-LEPrecio-text().toDouble(); } catch(QString error) { QMessageBox msgBox; msgBox.setText(error); msgBox.exec(); } After doing this. I am planning to manipulate the double value, but this doesn't work. If I write hello world on the line edit. Supposly it converts it, and it doesn't work. Any idea ;) Diego Turcios DiegoTc Ubuntu User # 27518 --- Mis Blogs http://diegoturcios.wordpress.com/ https://wiki.ubuntu.com/DiegoTurcios -- Recuerden Dios siempre esta presente: http://sagradocorazondejesus-diegotc.blogspot.com/ ___ 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] Transformin Qt Creator in a compact Programming Text Editor
I Know i could always carry a full install of Creator on my pen-drive, but that usually don't work, 'cause the PC needs to have Qt installed :/ That's not true at all. The binary builds of Creator work with a local set of libraries instead of the system libraries (and in fact Creator can't be built against the current public release of Qt!). If you install it on the pen drive, it'll work as long as the pen drive has the same drive letter, and you can use the DOS subst command to map a virtual drive letter. So for example, if on your home computer the pen drive appears as E:, try issuing the command subst e: q: and then install Qt on the new Q: drive. Then when you put the pen drive on another computer and want to use it, use subst to map the drive letter on THAT computer to Q: and Creator will work. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Plugin to display compile errors warnings etc. inline
E.g. currently there are two cases when the build issues list is cleared. a) When you start a new build b) Pressing the clear all button in the build issues list I don't know whether b) should also clear the editor of all inline markers. (I suppose it should.) You probably need signals for that too then. I would argue that b) does indeed need it. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Combo Box with sql values
Absolutely. It would be a little silly if you couldn't access UI elements from your source code. ;) Just make sure to give the combo box a sensible object name, and then refer to the QComboBox documentation for how to manipulate it by that pointer. /s/ Adam On Thu, Jun 17, 2010 at 7:15 AM, Przemek przemek...@gmail.com wrote: Hello, Is it possible to create in QtDesigner a form in combo box and insert sql values in combo box later (during using application)? If yes, how to make it? PZ ___ 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] Qt Creator portable for Windows
Qt looks for plugins in a path predetermined at build time. I think you can override this behavior with a qt.conf file in the same directory as the .exe file, but I don't know the syntax of this file and you'd have to put that file alongside every .exe generated by Creator as well. (It may be possible to do this by hacking on qt.prf? I'm not sure.) /s/ Adam On Tue, Jun 8, 2010 at 4:27 PM, Sergio de la Cruz Rodriguez ser...@electrica.cujae.edu.cu wrote: Hi: I'm using Qt/QtCreator to teach Medical Informatics to about 50 students. They are working these days in their final project. Some of them can only use PC's without admin rights at college facilities. If they are lucky they can find someone with admin rights that can install Qt Creator for them but when they log in their guest accounts they find that they have to tweak the environment variables for the guest account (as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully compile a project. This seems to happen whatever version of Qt Creator you use. Why there is no Install for all users checkbox in the Qt Creator installer? It would be very useful. I have tried to make for them a portable version of Qt Creator (copying the folder Qt/20xx.xx/ and its subfolders). Even after changing the environment variables Qt Creator doesn't run (complains about misconfigured settings), neither does Qt Assistant (could not load sqlite module), neither does Qt Demo (memory at 000 not writable). The Qt Designer runs OK. If you run the portable version in a PC that already has Qt Creator installed it runs OK too. Am I missing something? Can you help me with this? I have other concerns about using Qt/Qt Creator in education but I will address them later. Regards, Sergio Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 29 de noviembre al 3 de diciembre de 2010 La Ingeniería y la Arquitectura por un Futuro Sustentable Palacio de Convenciones, La Habana, Cuba http://www.cujae.edu.cu/eventos/convencion ___ 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] Qt Creator portable for Windows
Holy crap, I forgot all about subst. It's been forever since I've used it. Yeah, that'll work. That'll work beautifully. Just create a subst'ed virtual drive, install Qt on it, and then modify qtvars.bat to make sure the subst is in place. /s/ Adam On Tue, Jun 8, 2010 at 7:08 PM, M. Bashir Al-Noimi mbno...@gmx.com wrote: Hello, As Coda said, it's easy to make Qt Creator portable but what about Qt? Qt installer in windows needs absolute paths (at the end of installing process you'll find that the installer execute patches for absolute paths) so making Qt it self portable is exhausted procedure but I fixed this issue easy when I used TrueCrypt because it's creating virtual hard drive on your portable media thus you can install Qt and Qt Creator on you portable media then you can load it anywhere you go. If you don't want to use TrueCrypt try this instead: Create patch file (*.bat) and include subst command for creating virtual drive from specific folder (you can point to relative path of folder by using %CD% constant). On 08/06/2010 11:46 م, Coda Highland wrote: Qt looks for plugins in a path predetermined at build time. I think you can override this behavior with a qt.conf file in the same directory as the .exe file, but I don't know the syntax of this file and you'd have to put that file alongside every .exe generated by Creator as well. (It may be possible to do this by hacking on qt.prf? I'm not sure.) /s/ Adam On Tue, Jun 8, 2010 at 4:27 PM, Sergio de la Cruz Rodriguez ser...@electrica.cujae.edu.cu wrote: Hi: I'm using Qt/QtCreator to teach Medical Informatics to about 50 students. They are working these days in their final project. Some of them can only use PC's without admin rights at college facilities. If they are lucky they can find someone with admin rights that can install Qt Creator for them but when they log in their guest accounts they find that they have to tweak the environment variables for the guest account (as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully compile a project. This seems to happen whatever version of Qt Creator you use. Why there is no Install for all users checkbox in the Qt Creator installer? It would be very useful. I have tried to make for them a portable version of Qt Creator (copying the folder Qt/20xx.xx/ and its subfolders). Even after changing the environment variables Qt Creator doesn't run (complains about misconfigured settings), neither does Qt Assistant (could not load sqlite module), neither does Qt Demo (memory at 000 not writable). The Qt Designer runs OK. If you run the portable version in a PC that already has Qt Creator installed it runs OK too. Am I missing something? Can you help me with this? I have other concerns about using Qt/Qt Creator in education but I will address them later. Regards, Sergio Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 29 de noviembre al 3 de diciembre de 2010 La Ingeniería y la Arquitectura por un Futuro Sustentable Palacio de Convenciones, La Habana, Cuba http://www.cujae.edu.cu/eventos/convencion -- Best Regards Muhammad Bashir Al-Noimi My Blog: http://mbnoimi.net ___ 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] how to attach sources for debugging?
About java-style debugging behaviour - may be it will be better to create an issue in gdb project? Probably, but I have my doubts you'll see much action on it; there are a lot bigger fish to fry. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] how to attach sources for debugging?
The behavior you describe from Creator is the standard behavior used by gdb, and it's consistent with Eclipse, Xcode, and Visual Studio (even though VS doesn't use gdb); it's pretty typical for a debugger. /s/ Adam On Fri, May 21, 2010 at 3:05 PM, Aekold Helbrass helbr...@gmail.com wrote: I am using NetBeans (Java) for my everyday work, so I'll describe it as example: Let's assume our line of code looks like this: painter.drawText(getX(), getY(), getString()); When you're pressing step into in NetBeans it highlights all step into possibities, four of them in example above, and highlights one of them as default one, so you can press step into once again to go into default one or you can click with your mouse on any other to step into it. Then, when you're stepped all your way up to the end of getX() for example you're returned to the same line, with one function marked as visited, and you can step into another one. In QtCreator it steps in the first one to execute (getX() in our case), and when you're stepping over the internals of function up to the end - Qt Creator will not show you the original line again with possibility to step into next function but will act as step over it. So it took me some time to understand that I should press step into on the last lines of getX() to step into getY(), but I can't just skip them and step directly into drawText(). On 5/21/10, Andre Poenitz andre.poen...@mathematik.tu-chemnitz.de wrote: On Fri, May 21, 2010 at 08:06:25PM +0300, Aekold Helbrass wrote: Andre' thanx for your fast response. It was totally my own fault, it's just Qt Creator debugging behaviour differs from NetBeans or Eclipse in a bit less intuitive way. In which way is it less intuitive? Andre' ___ 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] How to add txx into c++ editor suffix
You're going to have to compile Creator from source. /s/ Adam On Tue, May 18, 2010 at 10:51 AM, Sam Sun wxdl...@gmail.com wrote: Good morning Friedemann; Thank you very much for your reply. I am using gcc/g++ compiler on Ubuntu 10.04, and try to generate ITK libraries with this IDE. Is there any special requirement in installing the attached file on Ubuntu 10.04? Best regards, Sam On Tue, May 18, 2010 at 3:47 AM, Friedemann Kleint friedemann.kle...@nokia.com wrote: Hi, in order to customize editor for stl files with suffix, could you please tell me how to add suffix txx into c++ suffix through tools-options-c++-file naming conventions, or other methods? Thank you very much for your kind help. The attached patch should make Creator recognize the suffix as C++ source. What platform/compiler/STL implementation is that? Regards, Friedemann -- Friedemann Kleint Nokia, Qt Development Frameworks ___ 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] Qt Build Settings can use $BUILDIR. Why not Project Run Settings?
Or are you saying it cannot be done and the best I can do is to use these static methods at run-time? We're saying that the run-time solution is superior in general. Working directory is a notoriously fickle beast and it can change just depending on how you happen to invoke the program. The static methods, however, will always return a consistent path no matter how you invoke the application. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] QtCreator 2.0 and wildcards on project files
My thought on the matter is to use the OTHER_FILES variable (I think it's OTHER_FILES, at least), which Creator uses to add non-compiled files to the project and qmake ignores. Then you keep your .pro file unchanged and add ALL of the platform directories to OTHER_FILES so that they're visible in the editor regardless of the value of $${platform}. /s/ Adam On Thu, May 6, 2010 at 9:02 AM, Gustavo Federico Bett gfb...@gmail.com wrote: Hi All, I'm working on a project that builds on three platforms, and to handle the platform specific code we have .pro files with something like this: # Header files HEADERS += ./inc/*.h include = ./inc/$${platform}/*.h exists($$include) { HEADERS += $$include } So we have a folder for each platform and a the platform variable is defined with the folder name for each platform. That make adding new files, and moving them around very easy, but... I just tried the new QtCreator 2.0 beta, and it seems that the new qtcreator is unable to handle the wildcards on the .pro files (with QtCreator 1.3.1 it works like a charm). It doesn't show any file on the projects. Any idea on how can I solve this?? (without having to rewrite all the .pro files ... ) Thanks in advance Regards -- Gustavo Federico Bett ___ 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] where should I install Qt Creator / Qt SDK, on Linux?
That would be YAST, although the package names might be slightly different. /s/ Adam On Mon, May 3, 2010 at 5:11 PM, Elfen pem.accounts.s...@gmail.com wrote: One other thing I noticed, is that the Qt Creator installer tells me, for Ubuntu / Debian, to run: sudo apt-get install libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-dev sudo apt-get install libgl-dev libglu-dev However, this did not work for openSUSE. So I wonder, maybe I need to look for the equivilent of apt-get for openSUSE... On Mon, May 3, 2010 at 4:31 PM, Elfen pem.accounts.s...@gmail.com wrote: er, you can uninstall with /opt/qtsdk-2010.02/bin/uninstall On Mon, May 3, 2010 at 4:24 PM, Elfen pem.accounts.s...@gmail.com wrote: hmmm... And now I have to figure out how to uninstall /opt/qtsdk-2010.02/ ... On Mon, May 3, 2010 at 4:22 PM, Elfen pem.accounts.s...@gmail.com wrote: If you use the qt creator which comes with suse this is no problem. okay, but Qt Creator 1.2 is really old? I wonder how long until the openSUSE repo has Qt Creator 2.0? Plus, if I'm doing cross-platform development... Isn't it best to have Qt Creator 1.3 on all platforms? (And Qt Creator 2.0 when it's released). You probably need to tell Qt Creator about your new Qt installation (Tools-Options-Qt4-Versions). It is a known issue in 1.3, that the installer writes the initial Qt Creator settings *for the root user* if you install as root. So, if you'd start Qt Creator as root user, it would already know about the new Qt version in /opt, but if you start as any other user, it doesn't and you have to tell it manually. You mean /opt/qtsdk-2010.02/qt/bin/qmake ? Yes this worked. However, when I open a project, now it says I have to copy the project to a writable location, to edit or compile the sample project. So, overall, I guess I generally understand the difference... /opt/qtsdk-2010.02/ is read-only and meant for the system,. While /home/user/[my user name]/qtsdk-2010.02/ is writable and meant only for my user. However, I still don't know which is the right / best / ideal choice. Sounds like the default of ( /user/[my user name]/qtsdk-2010.02/ ) is easier... unless I missed something? thank you for info 2010/5/3 Thorbjørn Lindeijer thorbjorn.lindei...@nokia.com On 04/30/2010 10:04 AM, ext Alex Richardson wrote: I wonder if Qt Creator should make /opt/qt-sdk-2010.02 the default install path (instead of /home/[user name]/qt-sdk-2010.02), since that's the official FHS standard. The problem is that a normal user usually does not have write permission to /opt/, so installing to the home directory is safer. Exactly. Also, when you run the installer as root, it already defaults to installing in /opt. That you don't get a GUI installer when running with sudo is strange. At least on Ubuntu this works fine for me. Regards, Bjørn -- Thorbjørn Lindeijer Software Engineer Nokia, Qt Development Frameworks ___ 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] printf() with Qt Creator?
Note that endl includes an implicit flush, so this isn't really news. Buffered I/O is buffered I/O and you should never write code that depends on buffered I/O being output before an explicit flush. By the way, IIRC, fflush(stdout) should work for stdio.h I/O. /s/ Adam On Sat, Apr 24, 2010 at 4:51 PM, Danny Price deepblue...@googlemail.com wrote: On 24 Apr 2010, at 22:22, Robert Hairgrove wrote: This is also an issue in non-Qt apps. Just change this line: std::cout test; to this: std::cout test std::endl; On some platforms (*nix, I think) you need to do this in order to keep the next output from overwriting the line test. Thanks it now works! The CONFIG += console line appears to have no effect on OSX either way. I suppose it's really for Windows? I've not been able to get printf to work though, even with a '\n'. ___ 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] build settings for cross platform? multiple svn checkouts on each development computer
As a thought... How troublesome would it be to have something like a CREATOR_PRAGMA variable in the .pro file that directs these kinds of things? qmake could simply ignore it, after all. This would allow some settings -- like, for instance, shadow builds -- to be overridden by the .pro file. /s/ Adam On Mon, Apr 19, 2010 at 3:49 AM, Tobias Hunger tobias.hun...@nokia.com wrote: Hi Danny! Yes, using the .pro-file for settings to be shared between developers is the right thing to do. Thanks for explaining that so well! On 19.04.2010 10:16, ext Danny Price wrote: However, I've noticed that the latest snapshots turn on the shadow build feature by default. This is a problem because it overrides the build paths specified in the .pro file. And if I turn off the feature it will be turned on again the next time the .pro.user is generated (ie. when someone checks out my code). Can you please describe your directory layout? Are you using your own shadow building setup? Which variables are ignored by our use of shadow builds? Can you send us a .pro-file that breaks for you so that we can improve the situation? A existing in-source build should get detected and get imported using the settings used to create the build. This is of course not a help in the fresh-checkout use-case you mention:-/ I hope Nokia revert this to the previous behavior (turn off shadow builds by default). We did turn on shadow-building by default since we need to improve the multiple platform use-case. That is a real pain with pre-2.0beta creators since switching platforms totally confuses make, thus resulting in broken builds and all kinds of strangeness. There is just too many complaints about this to ignore;-). So shadow-building is -- from our perspective -- a must have for the next version. However we are open for suggestions on how to minimize the impact on other use-cases. Best Regards, Tobias -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] Debugging as super-user
You could always modify /etc/sudoers to allow gdb to be run without a password. /s/ Adam On Wed, Apr 14, 2010 at 6:56 PM, Bryce Schober bryce.scho...@gmail.com wrote: yep. The problem is that I can't figure out how to get qt-creator to allow any wrapper to do the interactive stuff necessary to get through sudo, or preferrably gksu. That said, I'm pretty much a newb. On Wed, Apr 14, 2010 at 2:54 PM, Andre Poenitz andre.poen...@mathematik.tu-chemnitz.de wrote: On Wed, Apr 14, 2010 at 02:28:27PM -0700, Bryce Schober wrote: Neither option works for me. Our application, which is a PC-build-variant of our embedded application, calls mlockall(), which fails with EPERM. Normal command-line usage of sudo works great, either for running or debugging with gdb, but I'm not sure how I would get equivalent permissions through qt-creator. How do you invoke gdb as a user in that case? Plain 'sudo gdb'? Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator -- Bryce Schober ___ 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] How to convert qmake to cmake
Why would you want to? If your qmake project is working fine as a qmake project, why introduce the added complexity of cmake? /s/ Adam On Wed, Mar 31, 2010 at 11:31 PM, Alexander 'hatred' Drozdoff adrozd...@gmail.com wrote: Hi all, Does any way/tool to convert qmake .pro files to cmake CMakeList.txt? -- WBR Alexander Drozdov ___ 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] Using Windows API directly
You mean LIBS += -lmscms doesn't work? That's odd... /s/ Adam On Sat, Mar 27, 2010 at 4:59 PM, Stephen Chu step...@ju-ju.com wrote: Hi. I have a piece of code that converts CMYK image data to color corrected RGB for display. In Creator, I can use ColorSync for OS X by including ApplicationServices/ApplicationServices.h and call the OS function directly. I need to do the same thing on Windows with WCS/ICM. So I include the following: #include w32api.h #define _WIN32_WINNT WindowsVista #include windows.h #include icm.h and call CreateColorTransform(). It compiles but fails to link. The ICM API is documented to exist in Mscms.lib and .dll: http://msdn.microsoft.com/en-us/library/dd316829%28VS.85%29.aspx My question is, how do I make it link to the right library? I am using mingw that comes with Creator 2.0 alpha on Window. Thanks. ___ 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] Run Debug buttons in the latest snapshots
My suggestion would be to have shift+click use the other mode, or add a context menu, or both. /s/ Adam On Thu, Mar 25, 2010 at 9:16 AM, Stephen Chu step...@ju-ju.com wrote: I notice that the 2 run and debug buttons are now merged into 1. And works differently depending on if you are in Edit (run) or Debug (debug) mode. I like the previous 2 buttons way better. It allows access to both actions in all modes. I mostly work in Edit mode since it has more real estate to work with in the editor. Now I need to switch to Debug mode to click at the debug button. Of course I can always just hit F5. But if that's the rationale of having just one button, why having button at all then? And if for some reason there can absolutely be one button, make it the debug button all the time. It's way more useful in an IDE. -- Stephen Chu mailto:step...@ju-ju.com http://www.ju-ju.com ___ 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] Run Debug buttons in the latest snapshots
On Thu, Mar 25, 2010 at 10:53 AM, Bernd Stramm bernd.str...@gmail.com wrote: On Thu, 2010-03-25 at 11:27 -0400, Stephen Chu wrote: Better yet. Switch between Run and Debug automatically depending on the build config. A good idea, if that status is prominently displayed. It would have to have a default run mode option stored in the build config, since you can have more than just debug and release configs. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Run Debug buttons in the latest snapshots
That's a lot of talk for just a button. Can we just have both of them back? The old design works. Why change it? Small screens, I imagine -- netbooks don't have a lot of vertical screen real estate, so the less you put there, the better. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Mercurial in v2 Alpha?
Likewise. On Fri, Mar 12, 2010 at 8:30 AM, Robert Caldecott robert.caldec...@gmail.com wrote: I'll put it through it's paces. :) On 12 Mar 2010, at 14:26, Daniel Teske daniel.te...@nokia.com wrote: On Friday 12 March 2010 15:18:05 ext Robert Caldecott wrote: I'm not in a position to try the Qt Creator v2 Preview yet but before I do, has support for Mercurial been added yet? :) Yes. It's brand new so obviously feedback is welcome. (And internally we don't have mecurial repositories.) daniel ___ 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] Qt 4.7 and Qt Creator 2.0 Technology Previews Released
Qt Creator will allow you to build Qt projects with 4.4 or later. Creator itself must be built with a sufficiently recent version. /s/ Adam On Fri, Mar 12, 2010 at 8:38 PM, Nikos Chantziaras rea...@arcor.de wrote: On 03/12/2010 05:21 PM, Daniel Teske wrote: I am using 1.3.81 with Qt 4.6.2 on the Mac. I find the debugger helper doesn't seem to work anymore. All the Qt types like QVector only shows anonymous union instead any of the useful things like number of items and the first few values. Does Creator 2.0 only work with Qt 4.7? No, creator should work with any Qt= 4.4. Try rebuilding the debugging helpers in the qt version dialog found in Tools/Options. If that doesn't solve the problem, please send the content of the right view of Debug/Views/Debugger. I'm not sure it works with Qt 4.6.2. Trying to build Creator from Git results in: Project MESSAGE: Cannot build Qt Creator with Qt version 4.6.2. Project ERROR: Use at least Qt 4.7. ___ 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] QT-Creator project management - looking for advice
make distclean will clean the target and the makefile(s) too. On Wed, Mar 10, 2010 at 4:49 PM, August Hörandl august.hoera...@gmx.at wrote: Am Mittwoch 10 März 2010 schrieb Eric Anderson: Suggestions, anecdotes of experience, and pointers to specific documentation sections or books on QT will be greatly appreciated. I am a teacher and some colleges an i use qtcreator for some time now: Just tell the students to do build/clean all before submitting the whole directory as a zip, rar or tar.gz file. You have to delete the Makefile (which gets not cleaned) or call build/run qmake to use the project. It is possible, at least in linux, to use make dist to create a .tar.gz file -- but this rather unusable because it includes a lot of unneeded stuff, but it is simple to use on the command line, includes the version number, but there is no menu entry in qtcreator. Another suggestion would be to use git, subversion or any other version control system. You get the additional benefit of teaching about version control, the pupils don't lose work and sometimes the revision history gives some hints about the connections between different students. hth Gustl -- August Hörandl august.hoera...@gmx.at Free users may ever have a choice... others never ! Free software for people with free minds. ___ 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] QSplitters
I had this same confusion a month or two ago. It seems to me like there is some inconsistency in the design here. QSplitter should either appear in the the list of widgets, or it should be changed to QSplitterLayout and inherit QLayout. Just my two cents. I'd lean towards turning QSplitter into an actual layout. QSplitter has all of the behaviors of a widget -- it renders things to the screen and it processes events. It couldn't be a layout because layouts do nothing but calculate geometry when the widget they're applied to is resized. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Using QtCreator as a general C++ IDE
If nothing else you can always say CONFIG -= qt in your .pro file. You can also use it on Makefile-based projects. /s/ Adam On Wed, Feb 24, 2010 at 7:22 PM, Jefferson Bandeira jbsi...@ufrj.br wrote: Hello trolls =) Is there a way to use QtCreator as a General Purpose IDE, instead of a Qt Only IDE... I like most of the features of code completion and browsing this IDE offers, and i really would like to use it as my main IDE, however i can't find a way to use it to anything other than creating Qt Apps. So, the question : Is it possible? If so, how? Thanks for your time, i'll wait for answers. =) -- Jefferson Bandeira ___ 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] Stepping into Qt code on OS X? - Picture 2.png (1/1)
Screenshot works for me. It just shows a disassembly of QWidget::layout (qwidget.cpp:9350) with the stack frame drawn in gray instead of black. On Tue, Feb 16, 2010 at 9:19 AM, Eike Ziller eike.zil...@nokia.com wrote: On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike -- Stephen Chu begin 644 Picture 2.png MB5!.1PT*@h-24...@```s```$Y`(B)DG4```/E#0U!)0T,@ M4')O9FEL90```MDT]H$T$4QK]M!%NL/9...@ayrb8RC;U((B0)FTEMDU# [...] M\_A(],NM*KBG3H*0?Z+DP/KFWT\X0($`8(`...@0!`@!`$S(`Y0C^A'B M]^_.H:5[3';FF2,?(I,@0!`@!`$`($`8(`0`...@-#0tj?bd^j).K3LDO m...@0!`@!`$`($`8)`...@*956%3EY)7+VDP%DC%!@!`$`($`0(`...@0! m...@h`!`i8]_8s7?[j91t...@0p@$`8(`...@0!`@!...@x!3f6ea?'HVE M!:0W!+2=*B1G@@!!@!`$`($`0(`...@0!-0(.SNR6D-!CD@!`$`($`8(` m...@t%x0('L/M!=+$#T(`...@0!@@!!@!`$`(:-`O#1M-,@q...@0!`@!`$ M`($...@?:`/'2VHLEB!X$`8(`...@0!`@!`$M!'x?...@pohd%g:`$E% 3D2N0F ` end -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] Target name wrong, zero number appended
The 0 is from the VER_MAJ variable. /s/ Adam On Sun, Feb 14, 2010 at 2:28 PM, Matthias Pospiech matthias.pospi...@gmx.de wrote: I create the target in the pro file with: CONFIG += debug LIBRARY_NAME = plotext CONFIG(debug, debug|release) { win32:LIBRARY_NAME = $$join(LIBRARY_NAME,,,d) } TARGET = $${LIBRARY_NAME} message(Target: $$TARGET) resulting in the output: Project MESSAGE: Target: plotextd But the file that is created has the name: plotextd0.dll so there is a 0 appended. Why? Matthias ___ 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] Problems with Dockwidgets
On Thu, Jan 21, 2010 at 3:11 PM, Ken Ray k...@ishere.com wrote: I tried qt-interest and not much of a response. Note that this test app I'm trying to build is just like the fontsampler demo that comes with creator/QT. I'm trying to duplicate the dockwidget on the left. How did fontsampler get around this problem ? It seems to me that if Creator can't hold a layout for more than a few clicks there is a serious flaw. It makes working with all the contents related to that dockwidget a pain in the ass. I'm going to go play with Mono now to see how there stuff is . I want some cross platform development that is stable. but if none is stable , then I guess it's back to VS .net .. Mono is pretty gimped, sadly. Most of the good .NET stuff is Microsoft-only junk that's only available on Windows. Even Java would be preferable to .NET if you want cross-platform compatibility. You happened to hit on the one thing I don't like about Qt: dock widgets. I've never had a lot of luck with them, and when I do use them I develop with code, not Designer. There's several things that they don't do quite right. But don't let that one widget turn you off to the toolkit as a whole. Qt's very stable and very robust, and it's the best toolkit available for writing apps that look native on all supported platforms. Consider possibly using some other solution if dock widgets in Designer aren't working for you. Maybe construct the dock widgets in code, or maybe use some non-docking solution. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Qextserialport - checking that data has been sent for RS485 comms
QextSerialPort is not a Qt class, and even if it were it would be a question for qt-interest, not qt-creator. Check the class's home page to find contact information for its creator. /s/ Adam On Mon, Jan 11, 2010 at 1:51 PM, Robert Wood robert.w...@apostrophe.co.uk wrote: Folks, Not sure this is quite the right place for this question, but here goes: I am writing data out to a VCP using qextserialport and all works fine in terms of getting the data to and fro the PC. One thing I do want to do though, is check when the last byte of data has actually been sent. ie The output buffer of the UART IC itself is empty. Reason I want to do this is that once all the data has gone, I need to immediately set the RTS line low, so my little RS485 adapter is put into receive mode. I thought that maybe waitForBytesWritten(int msec) would do the trick (and maybe it does), but I can't get it to work. I've tried vcp-writeData(c[0],10); while (vcp-waitForBytesWritten(x) == false); vcp-setRts(false); where x is various values, including -1, but it just jumps out and the RTS line gets set low too early, the data thus not getting sent out. Anyone know whether what I want to do is possible?! Many thanks, Rob ___ 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] Intel Compiler and C++0x?
On Wed, Jan 6, 2010 at 3:55 AM, Danny Price deepblue...@googlemail.com wrote: I would like to make use of C++0x in Creator. Is it possible to use Creator with the Intel compiler (available as a 'plugin' for MSVC 2008) and if so how? This makes available C++0x syntax like 'auto' to MSVC? And what options exist for the OSX platform where the default toolset is Apple's GCC 4.2? It's possible by setting the appropriate makespec. Creator won't syntax highlight C++0x constructions and may flag some as errors, but if your compiler has support it will build. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Intel Compiler and C++0x?
No, I mean your chosen Qt mkspec. The default is usually something like linux-g++ or macx-g++ or win32-msvc or something; there's also linux-icc, macx-icc, and win32-icc that will use icc as the C/C++ compiler. I will note that these aren't officially supported as far as I know so you're sort of operating at your own risk. Unfortunately I don't know how to select a different makespec in Creator (though if you poke around in the Qt Versions preferences pane or the Project view you can see the makespec it's using). It should work, though, if you build Qt using that spec as default (that is, pass -spec macx-icc to Qt's configure). Building your Qt project at the command line you can try qmake -spec macx-icc -- do note that I'm not sure that icc and gcc are binary-compatible so this may or may not work with a standard Qt build. /s/ Adam On Wed, Jan 6, 2010 at 9:05 AM, Danny Price deepblue...@googlemail.com wrote: makespec? Do you mean a compiler flag? Do you know the flags in question? On Wed, Jan 6, 2010 at 2:49 PM, Coda Highland c...@bobandgeorge.com wrote: On Wed, Jan 6, 2010 at 3:55 AM, Danny Price deepblue...@googlemail.com wrote: I would like to make use of C++0x in Creator. Is it possible to use Creator with the Intel compiler (available as a 'plugin' for MSVC 2008) and if so how? This makes available C++0x syntax like 'auto' to MSVC? And what options exist for the OSX platform where the default toolset is Apple's GCC 4.2? It's possible by setting the appropriate makespec. Creator won't syntax highlight C++0x constructions and may flag some as errors, but if your compiler has support it will build. /s/ Adam ___ 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] Qt Creator doesnt detect Header files
Add the files to the HEADERS variable in your .pro file and that should help, although I don't know if F4 will switch between the correct files or not. /s/ Adam On Wed, Dec 23, 2009 at 2:54 AM, Rajeev J Sebastian rajeev.sebast...@gmail.com wrote: Hi, Qt Creator doesnt seem to detect some special header files for a given .cpp file. In one project, the header files did not have a .h extension. E.g., MyClass MyClass.cpp In the same project, one class was being generated from a .h.in file: MyClass.h.in MyClass.h (- generated from .in) MyClass.cpp Is there some way to get Qt Creator to detect these ? Unrelated question: I'm using waf to build my project. To get Qt Creator to issue ./waf build in the Project Directory, i have to create a Custom Step. But, I cannot get rid of the Make step, and so, i have to create a dummy Makefile with an all target. Is there some way I can avoid this ? Regards Rajeev J Sebastian ___ 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] How set -rpath or -rpath-link from QT project file?
While technically correct I strongly suggest against using absolute paths into your home directory like that. I would recommend instead using $$(PWD) as the base for a path (for instance, $$(PWD)/../mylib/) so that other people can build your project and still have it work. /s/ Adam On Wed, Dec 23, 2009 at 1:32 PM, Marc Durant mdur...@txcorp.com wrote: You'll need to add an rpath option in your .pro file. Here's an example from one of my projects where I give the library directory for python, the rpath directory, and then the library itself. The directory named by rpath tells the executable where to look for this particular library. LIBS += -L/home/mdurant/Source/visit2_svn/visit/python/2.5/linux- x86_64_gcc-4.3.0/lib/python2.5/config \ -Wl,-rpath,/home/mdurant/Source/visit2_svn/visit2.0.0/ python/2.5/linux-x86_64_gcc-4.3.0/lib/python2.5/config \ -lpython2.5 -marc On Dec 23, 2009, at 12:16 PM, Ed Sutton wrote: When I run the Qt created Makefile to build the client that uses my shared library, I get the following warning: /mylib.so, not found (try using -rpath or -rpath-link) Can someone please provide and example of what to add to the QT project file to generate a happy Makefile? It builds fine from within QT Creator after I had set the build environment LD_LIBRARY_PATH to include the shared library path. Thanks in advance, -Ed ___ 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] Navigating inside Editor question or suggestion
Visual Studio uses Ctrl-F3 to find the next occurrence of the word under the cursor, and F3 to find the next after that. That is to say, Ctrl+F3 is search for next occurrence of current word; F3 is find again no matter how you started the search. In vim, shift+8 is find next occurrence of current word and shift+3 is find previous occurrence of current word. In both cases you can use n to continue or use the same keystroke. (Apparently the mnemonic is that it's * and # like on a phone. Other than that it seems a bit senseless.) /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] other languages syntax highlight support
It's a plugin system. It'll take some effort, but you should be able to do it. /s/ Adam On Sun, Dec 20, 2009 at 9:40 AM, paulo paulo.jn...@gmail.com wrote: Hi, is there a obvious way to add syntax highlight to qt-creator, for other languages? In my case, I would like to use qt-creator to edit my glsl files. Is it possible to do this through a config/rules file? Thanks Paulo ___ 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] Optimizing for speed
That's because I'm an idiot and told you to use the wrong variable. Try QMAKE_CXXFLAGS. :P /s/ Adam On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith phh...@gmail.com wrote: Thanks again, Adam. I did as you suggested, but still getting -O2: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland c...@bobandgeorge.com wrote: This is really a qmake question, since it's qmake that controls this. In your .pro file, use something like: QMAKE_LFLAGS -= -O2 QMAKE_LFLAGS += -O3 /s/ Adam On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith phh...@gmail.com wrote: Thanks, Adam. I was thinking about the option -O3. How can one force qt-creator to use -O3? Paul On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland c...@bobandgeorge.com wrote: On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith phh...@gmail.com wrote: Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are Empty Qt4 ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ 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] Optimizing for speed
Looks right to me. /s/ Adam On Sun, Dec 20, 2009 at 3:10 PM, Paul Smith phh...@gmail.com wrote: Tried that. Does the following seem correct to you? --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O3 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 8:14 PM, Coda Highland c...@bobandgeorge.com wrote: The -O1 is just a linker flag. The -O3 -O2 is a problem; try: QMAKE_CXXFLAGS_DEBUG -= -O2 QMAKE_CXXFLAGS_RELEASE -= -O2 On Sun, Dec 20, 2009 at 1:35 PM, Paul Smith phh...@gmail.com wrote: I have just done as you suggested, and getting the following: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Is it now correct? It appears -O1, -O2 and -O3. Paul On Sun, Dec 20, 2009 at 6:18 PM, Coda Highland c...@bobandgeorge.com wrote: That's because I'm an idiot and told you to use the wrong variable. Try QMAKE_CXXFLAGS. :P /s/ Adam On Sun, Dec 20, 2009 at 11:46 AM, Paul Smith phh...@gmail.com wrote: Thanks again, Adam. I did as you suggested, but still getting -O2: --- Running build steps for project exp... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/psmith/exp' g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -o exp.o exp.cpp exp.cpp: In function 'int main()': exp.cpp:17: warning: unused variable 'ngen' g++ -O3 -Wl,-O1 -o exp exp.o -lQtGui -lQtCore -lpthread make: Leaving directory `/home/psmith/exp' Exited with code 0. --- Paul On Sun, Dec 20, 2009 at 2:36 AM, Coda Highland c...@bobandgeorge.com wrote: This is really a qmake question, since it's qmake that controls this. In your .pro file, use something like: QMAKE_LFLAGS -= -O2 QMAKE_LFLAGS += -O3 /s/ Adam On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith phh...@gmail.com wrote: Thanks, Adam. I was thinking about the option -O3. How can one force qt-creator to use -O3? Paul On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland c...@bobandgeorge.com wrote: On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith phh...@gmail.com wrote: Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are Empty Qt4 ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ 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] Wrong path when using external editor
That's entirely likely to be a bug in Notepad. /s/ Adam On Sun, Dec 20, 2009 at 5:31 PM, Bob Babcock wss...@nospam.gis.net wrote: Bob Babcock wss...@nospam.gis.net wrote in news:xns9ce7bb52bec33wssddcgis...@62.70.27.71: If the editor is emacs, the path emacs sees is .../Qt/2009.05/qt/projects/projectname/sourcefilename. This part is resolved. The path had a space in it and changing the filespec from %f to %f makes it work. Adding quotes doesn't fix the Notepad strangeness. ___ 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] Optimizing for speed
This is really a qmake question, since it's qmake that controls this. In your .pro file, use something like: QMAKE_LFLAGS -= -O2 QMAKE_LFLAGS += -O3 /s/ Adam On Sat, Dec 19, 2009 at 6:38 PM, Paul Smith phh...@gmail.com wrote: Thanks, Adam. I was thinking about the option -O3. How can one force qt-creator to use -O3? Paul On Sun, Dec 20, 2009 at 12:31 AM, Coda Highland c...@bobandgeorge.com wrote: On Linux, it uses -O2 by default in release mode if I recall correctly, so it already is. /s/ Adam On Sat, Dec 19, 2009 at 5:46 PM, Paul Smith phh...@gmail.com wrote: Dear All, I am new to qt-creator, and I am using it mainly to write my C++ programs on a Linux machine (Fedora 12). Basically, my projects are Empty Qt4 ones. My question is: how can one configure qt-creator for optimizing for speed the C++ programs edited with qt-creator? Thanks in advance, Paul ___ 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] Dependencies in Qt Creator
Please do not use the Reply button to ask a new question to a mailing list; it looks like an off-topic question in an existing thread. Please send a new message to qt-crea...@trolltech.com. Meanwhile, to respond to your question... It's possible, but it has some limitations. First, you must rebuild Qt as a set of static libraries. (That is, add the -static flag to configure.) Then you have to add this new Qt installation to Creator. Finally, rebuild your application. There are several disadvantages to static compilation: * You can't do both static and 64-bit on Mac until 4.6.0. (Of course, on Mac there's better solutions than static anyway.) * Qt's plugin system is disabled, which can cause problems for things like SQL drivers and Phonon. * If you're distributing a closed-source application using LGPL Qt, static compilation introduces a major headache; the LGPL requires that the recipient of the program has to be able to relink the program with a modified version of the library. If you're not using plugins (including the plugins included with Qt), and you're only worried about the single executable file on Windows, and you're distributing an open-source application (or if you own a commercial license), you're in the clear. If you need anything different, static linking is probably not a good idea. /s/ Adam On Thu, Dec 17, 2009 at 7:02 AM, Gaurav Purohit gaurav.puro...@dspg.com wrote: can we buil a single exec with the qt creator please mention , so that application i can use without installation of Qt everywhere and give to someone to use as a general executable. please help how to build it with Qt creator in projects menu options __ DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System. _ ___ 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] Break on thrown exceptions?
In general; this should not be a desirable feature, as C++-based libraries should be free to use exceptions internally without interfering with your application's functionality. If you're interested on breaking on a SPECIFIC exception I'm sure there are a number of ways this could be done. A breakpoint on the exception object's constructor would be one possible choice. Catching the exception, breaking in the catch block, and re-throwing after the breakpoint would be another way to handle it. /s/ Adam On Thu, Dec 17, 2009 at 9:04 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Does Qt Creator let me specify that during debugging, the program should break (e.g., a breakpoint is triggered) whenever a C++ exception is thrown? I'm currently using Qt Creator 1.2.1 and gdb 7.0. Thanks, 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] Break on thrown exceptions?
By the way, if you're using gcc (at least on Linux, not sure about Windows) you can break on __raise_exception. /s/ Adam On Thu, Dec 17, 2009 at 9:33 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Thanks - the idea of putting the breakpoint on the exception constructor is a useful idea in my case. Regarding the general utility of being able to break on all thrown exceptions: I'd say it depends on how many different exception types you're using, whether or not you're throwing any objects that don't even have constructors (int, for example), and what fraction of exceptions thrown (by either your own code or 3rd party code) are the ones you want to catch. -Original Message- From: qt-creator-boun...@trolltech.com [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Coda Highland Sent: Thursday, December 17, 2009 10:27 To: qt-creator@trolltech.com Subject: Re: [Qt-creator] Break on thrown exceptions? In general; this should not be a desirable feature, as C++-based libraries should be free to use exceptions internally without interfering with your application's functionality. If you're interested on breaking on a SPECIFIC exception I'm sure there are a number of ways this could be done. A breakpoint on the exception object's constructor would be one possible choice. Catching the exception, breaking in the catch block, and re-throwing after the breakpoint would be another way to handle it. /s/ Adam On Thu, Dec 17, 2009 at 9:04 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Does Qt Creator let me specify that during debugging, the program should break (e.g., a breakpoint is triggered) whenever a C++ exception is thrown? I'm currently using Qt Creator 1.2.1 and gdb 7.0. Thanks, 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
Re: [Qt-creator] Break on thrown exceptions?
I didn't know it either but I had the idea to go look for it since I figured the compiler had to have some common entry point. /s/ Adam On Thu, Dec 17, 2009 at 10:17 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Thanks, I didn't know that. By the way, if you're using gcc (at least on Linux, not sure about Windows) you can break on __raise_exception. ___ 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] Debugging problem Creator
Qt Creator is a very young program. It's still under development and it's not really complete yet even if it's very nice and very usable. You don't have to use Creator to develop Qt software. Qt itself should be pretty solid, aside from some idiosyncrasies in the build system. The issues here with trying to work with VC++ are simply reflecting the fact that Creator (and Qt) are primarily designed to work with g++ and gdb, so using a different compiler and debugger is venturing out of the it just works department into it's possible territory. Note that I'm not suggesting you give up. ;) Keep trying and we'll try to help you out. /s/ Adam On Thu, Dec 17, 2009 at 2:30 PM, Ken Ray k...@ishere.com wrote: As a new user (starting) of QT, I'm sure seeing a lot of problems with QT. On Dec 17, 2009, at 3:57 AM, Eike Ziller wrote: On Dec 16, 2009, at 9:04 PM, ext Sujan Dasmahapatra wrote: Friens I am trying to debug my application in QT-Creator. I have configured QTfor VC++ at this location c:\Qt\2009.04\qt Now I am also using qt-creator and my application is built successfully in creator in debug mode. But when I am putting a break point and pree F5 it gives a message as Cannot debug D:\path\to\program\debug\program.exe Debugging VS executables is currently not enabled. a) what version of Qt Creator are you using? b) did you follow the Debugger Engine Installation Notes in http://doc.qt.nokia.com/qtcreator-1.3/creator-debugging.html ? Can anyone help to sort out this problem.Any suggestions would be appreciated. -- Thanks Regards S. Dasmahapatra B.E. (Aeronautics-Aerodynamics) Software programmer Bangalore, India Ph:91-9900839788 Office:91-80-66470248 mail id : sujan.dasmahapa...@gmail.com ATT1..txt -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ 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] Dependencies in Qt Creator
Well, usually when you're dealing with projects like this putting a dependency on the target file is generally sufficient, since that target file (in its own project file) has a dependency on the header files. (This is, by the way, the canonical workaround for dealing with dependency tracking on static libraries.) I'm not sure, however, that make will detect that the .o files are out of date when that's simply a linker dependency. Try it, see how it goes. /s/ Adam On Wed, Dec 16, 2009 at 8:31 PM, John Vilburn j...@ohanasoftware.com wrote: Adam, Thank you for the response. The problem I see with that approach is that whenever I add or remove a new header in one project I have to remember to modify PRE_TARGETDEP in the other project. I guess I could put the headers in a .pro.inc file and include that in both .pro files. But again, shouldn't there be a better way? Thanks, John On Dec 16, 2009, at 4:20 PM, Coda Highland wrote: You can use PRE_TARGETDEPS in the subdirs' .pro files to watch for individual files to be modified. /s/ Adam On Wed, Dec 16, 2009 at 7:21 PM, John Vilburn j...@ohanasoftware.com wrote: I have a .pro file that looks like this: TEMPLATE = subdirs CONFIG += ordered SUBDIRS = Project1 \ Project2 \ Project3 Some of the .h files in Project1 are used in Project2 and Project3. When I change one of those header files and do a build, only the files in Project1 get rebuilt. Is there a way to have qmake or Qt Creator notice those dependencies and rebuild the appropriate files in Project 2 and 3? Including the .h files from Project1 in the list of headers of Project2 and 3 would work, I suppose. But there must be a better way. Thanks, John ___ 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] Blank QT windows
Wrong mailing list; try qt-interest. This one's for talking about the Creator IDE itself. /s/ Adam On Mon, Dec 14, 2009 at 12:03 PM, Ashish Vats va...@lntebg.com wrote: Hello, I tried to download my QT application cross compiled onto the ARM board, it shows the blank dialog boxes, but if I try to click on the button at the known location, it performs the action of entering into new form but again it doesn't show resource on the form. Although it was working properly on PC with the screens. Regards Ashish Larsen Toubro Limited Electrical Electronics Division - EBG http://www.LNTEBG.com This E-mail may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. ___ 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] Unwanted extension .cpp
The fact that the KDE dialog is still attaching the extension even after you tell it not to is independent of presenting the wrong filter to the QFileDialog call. /s/ Adam On Fri, Dec 11, 2009 at 9:05 AM, thorbjorn.lindei...@nokia.com wrote: ext Coda Highland wrote: Well, that explains it. That's the KDE file dialog, not the Qt one. You're describing a KDE bug and you should probably go poke them about it. /s/ Adam Well, it depends on where the KDE dialog gets that information from. Maybe we're still telling the file dialog that .cpp is the default extension, even if you have selected a different one. You probably wouldn't notice this with other file dialogs. Regards, Bj�rn -- Thorbj�rn Lindeijer Software Engineer Nokia, Qt Development Frameworks ___ 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] Unwanted extension .cpp
Well, that explains it. That's the KDE file dialog, not the Qt one. You're describing a KDE bug and you should probably go poke them about it. /s/ Adam On Thu, Dec 10, 2009 at 3:24 AM, Kuiper, Luuk kui...@hitt.nl wrote: In my previous reply I forgot to attach the attachment. Here it is. Luuk - Original Message - From: thorbjorn lindeijer thorbjorn.lindei...@nokia.com To: qt-creator@trolltech.com Sent: Wednesday, December 9, 2009 3:00:14 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: Re: [Qt-creator] Unwanted extension .cpp ext Kuiper, Luuk wrote: Hi all, When I want to save an existing file (say: file.cxx) as another file (say: new_file.cxx) I always see that the file is saved as new_file.cxxcpp. Even when I switched off the button 'Automatically select filename extension (.cpp)'. I am using 1.3.0 on Suse Linux 11.1. I don't know where the Automatically select filename extension (.cpp) is (I don't see this option in my Save As dialog), but you can configure the default extension for C++ source and header files in Tools - Options - C++. Does that help? Regards, Bjørn -- Thorbjørn Lindeijer Software Engineer Nokia, Qt Development Frameworks ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator -- Luuk Kuiper Software Engineer HITT Traffic (HITT Holland Institute of Traffic Technology B.V.; CoC: 08060878) Oude Apeldoornseweg 41-45, NL-7333 NR, APELDOORN P.O. Box 717, NL-7300 AS, APELDOORN Telephone +31-55-543 25 26 Fax +31-55-543 25 53 E-mail kui...@hitt.nl Web www.hitt-traffic.nl This e-mail is confidential; containing proprietary information of HITT. It is intended solely for the individual(s) to whom it is addressed. This information is subject of a disclaimer as published on www.HITT.nl . ___ 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] A few issues (AutoInsert Brackets, C++ Parser, Locator)
Two things. First, when posting to a mailing list, don't use the reply button if your post isn't related to the message you're replying to. Create a new e-mail and type in the e-mail address yourself. Second, this is the Qt Creator mailing list. You would find more help on the qt-interest mailing list or, better yet, in the #qt IRC room on freenode. /s/ Adam On Fri, Nov 27, 2009 at 1:03 PM, Pratik Anand pratik.pr...@gmail.com wrote: How to implement video playback capability in Qt4. I am unable to find any simple good src code for it. Moreover, my own code is missing something. Please see http://pastebin.ca/1689923 The platform is linux I am still a newbie in Qt and trying hard to learn it.Please help -- Pratik Anand Blog: pratik3d.blogspot.com Twitter: twitter.com/pratikone ___ 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] problem building and app
Tell me more about your build environment. What OS/distro? What version of Qt, what version of Qt Creator? Two side notes: First, qmake -project should only be run once, to give you a basic .pro file, and never again; you should modify the .pro file it gives you. Second, you only have to pass a filename to qmake if you have more than one .pro file in the directory. /s/ Adam On Tue, Nov 24, 2009 at 8:45 AM, inf200...@ucf.edu.cu wrote: i can't build my apps on qt creator, when building qmake exits with error code 3 and if i do it manually, I mean qmake -project qmake xxx.pro says that can't proccess xxx.pro i haven't configured nothing. how can i solve this? -- Gabriel A. Lopez Lopez Estudiante 3er año de Ing. Informatica Universidad Carlos Rafael Rodriguez. Cienfuegos -- Participe en Universidad 2010, del 8 al 12 de febrero del 2010 La Habana, Cuba http://www.universidad2010.cu http://www.universidad2010.com ___ 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] qt creator fails to autodetect 'new' qt path - old path kept instead
On Mon, Nov 23, 2009 at 10:52 AM, Salvatore Rinaldo salvato...@symbian.org wrote: Hi guys, Which file does Qt Creator read when trying to recognise the list of available Qt installations at start-up? I don't know where it actually stores the file but there's a convenient UI in Creator itself for configuring the list of installed toolkits. Open the Preferences window and it's in the Qt4 section. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] failed build message not visible in GUI, problem with jom or something else?
g++: /usr/local/lib: No such file or directory command failed with exit code 1 command failed with exit code 2 So I still have some linux specific stuff in my .pro file, which I will correct. My guess why the message goes missing comes from the exit codes 1 2 above: I wonder if jom.exe output gets stuck somewhere due to different threads? I'm on a dual-core machine, using 4.6 rc1. No, there's no missing output there. It's just failing with a single error message: No such file or directory, which causes g++ to exit with code 1 right away. Then, because the compiler failed out, jom aborted with code 2. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] QtCreator 1.3 fixed font rendering broken in editor?
Could you please post a screenshot? I have some thoughts but it would be best served by seeing the actual pixels as displayed on your screen. /s/ Adam On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net wrote: Hi, I see a font rendering issue in QTCreator (1.3 branch built against qt 4.6 branch, MacOSX 10.6.2). My editor font is Monaco (fixed width) but the 1.3 editor shows different line lengths and a wrong right border for properly block aligned text (copyright note at the top of a file, 78 columns). If I open the same file in QtCreator 1.2.1 the display is ok. The right border line matches the configured column and all lines of the text have an equal length. Something like this: all lines have 12 columns + LF LF 123456789012LF LF foobarfoobarLF LF If it is all text, it looks ok. If I enable painting of whitespaces the middle line is longer than the other lines, ie. the LF column is no longer vertically aligned. If I disable white space painting it is ok for the above example and better for my file header but still not correct. The char at the last column in each line is painted a few pixels off the previous or next line. Is it just me? -- Martin ___ 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] QtCreator 1.3 fixed font rendering broken in editor?
*laugh* Thanks, but I meant screenshots that illustrate the problem. On Sun, Nov 22, 2009 at 2:37 PM, Alan Westbrook void...@gmail.com wrote: Here ya go! Oh, and one with the whitespace shown too! Alan On Sun, Nov 22, 2009 at 12:15 PM, Coda Highland c...@bobandgeorge.com wrote: Could you please post a screenshot? I have some thoughts but it would be best served by seeing the actual pixels as displayed on your screen. /s/ Adam On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net wrote: Hi, I see a font rendering issue in QTCreator (1.3 branch built against qt 4.6 branch, MacOSX 10.6.2). My editor font is Monaco (fixed width) but the 1.3 editor shows different line lengths and a wrong right border for properly block aligned text (copyright note at the top of a file, 78 columns). If I open the same file in QtCreator 1.2.1 the display is ok. The right border line matches the configured column and all lines of the text have an equal length. Something like this: all lines have 12 columns + LF LF 123456789012LF LF foobarfoobarLF LF If it is all text, it looks ok. If I enable painting of whitespaces the middle line is longer than the other lines, ie. the LF column is no longer vertically aligned. If I disable white space painting it is ok for the above example and better for my file header but still not correct. The char at the last column in each line is painted a few pixels off the previous or next line. Is it just me? -- Martin ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] failed build message not visible in GUI, problem with jom or something else?
The Build Issues tab only shows compilation errors; this isn't a compilation error. It's a build process error that isn't supposed to happen. /s/ Adam On Sun, Nov 22, 2009 at 4:55 PM, Grego gr...@mpaja.com wrote: There was no missing output on command line. But on GUI the build issues tab stayed blank. I expected to see g++: /usr/local/lib: No such file or directory there. ___ 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] General Usage Question
It's not just 'alt-tabbing to an explorer window', it's: 1) Removing the file from project (either manually from the .pro file or via the menu which requires dismissing the SVN prompt). 2) Closing any open documents for that file as Creator will not do with for you (and this is an easy way to get into a mess). 3) Renaming the file in explorer / your SVN client. 4) Re-importing the file (as above). 5) Re-running qmake. You can save yourself a step by renaming the file in the .pro file instead of removing it and re-adding it, and unless I'm mistaken (and it's possible I am) the .pro file is listed as a dependency for the Makefile so trying to build after modifying the .pro file SHOULD (in theory) automatically re-run qmake for you. This brings it down to three steps. /s/ Adam ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] General Usage Question
Qt Creator is a great code editor first, a good debugger second, and its role as an actual IDE comes after that. You're not missing anything. It just hasn't been done yet. qmake's file format is easy to do this kind of thing by hand in, so I would imagine that such a feature simply hasn't been a great priority. Think of it this way: how often do you actually go and do mass reorganization of your project? If the answer to this is anything more than not very often something's wrong with your workflow. ;) On the other hand, how often do you edit a source file? How often do you check out or check in code with your source code management tools? How often do you compile, test, and debug your application? There's plenty of other stuff that needs to work before renaming files is really a concern. /s/ Adam On Wed, Nov 18, 2009 at 10:09 PM, Sean Hignett s...@intelligent-design.ca wrote: Hello all, I just recently discovered Qt, and Qt Creator. Was always aware of it, but never paid it the attention it clearly deserves. Working through the C++ GUI book to get up to speed. Qt Creator has some really impressive features... but... it also has some strange omissions compared to all the IDEs I have used in the past (VS, Eclipse, etc). I'll avoid the apparently standard noob whining about no file rename, no folder creation, etc... Smart guys these Qt developers, so I assume there must be some thinking behind this... it is so bizarre it must be intended :) Can anyone offer an example of how they use the IDE such that basic integrated file management is not a requirement? I assume it is just a case of using the OS file management tools (eg. terminal) and manually updating the .pro files... but am I missing something? It would seem refactoring would be somewhat cumbersome without the ability to re-organize files in concert. I could get used to using terminal/finder/etc, but I can't imagine ever not wanting the ability to do it directly in the IDE... is this crazy? Has anyone written a better FileSystem view as a plugin? (i.e. one that isn't just read-only) Tips or advice is greatly appreciated! Thanks, Sean ___ 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