[Qt-creator] qmake Path on Commandline not searched
Hallo, I have a variable 'LIBRARYPATH' which is used in the following way LIBRARYPATH = E:/Daten/Dev/SVN/library/ INCLUDEPATH += $${LIBRARYPATH}include/Micos/ however this path is different on every computer. If I add LIBRARYPATH = E:/Daten/Dev/SVN/library/ to the qmake command line options the part is not added to the INCLUDEPATH anymore and thus all include files within that path are not found. (Marked green in the editor) So how can I add a Path to qmake on commandline such that QtCreator still uses it ? Matthias ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] qmake Path on Commandline not searched
On Thu, Jun 17, 2010 at 09:02:08AM +0200, ext Matthias Pospiech wrote: I have a variable 'LIBRARYPATH' which is used in the following way LIBRARYPATH = E:/Daten/Dev/SVN/library/ INCLUDEPATH += $${LIBRARYPATH}include/Micos/ however this path is different on every computer. If I add LIBRARYPATH = E:/Daten/Dev/SVN/library/ to the qmake command line options the part is not added to the INCLUDEPATH anymore this should actually change nothing in both qmake and creator - in qmake the value from the pro file will overwrite it (avoid that by prefixing the assignment with isEmpty(LIBRARYPATH): ), and creator will not process the command line option at all. So how can I add a Path to qmake on commandline such that QtCreator still uses it ? try this: LIBRARYPATH2 = $$(LIBRARYPATH) ## *don't* reuse the variable name below !isEmpty(LIBRARYPATH2) { INCLUDEPATH += $${LIBRARYPATH2}include/Micos/ } else { LIBRARYPATH = E:/Daten/Dev/SVN/library/ INCLUDEPATH += $${LIBRARYPATH}include/Micos/ } and pass LIBRARYPATH *in the environment*. in creator 2.0, the variable name reuse constraint is removed under most circumstances, so this should work as well: LIBRARYPATH = $$(LIBRARYPATH) isEmpty(LIBRARYPATH):LIBRARYPATH = E:/Daten/Dev/SVN/library/ INCLUDEPATH += $${LIBRARYPATH}include/Micos/ ___ 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] How to install dll directly after compilation
Hi Mathias, hi all, I have a project which compiles first the dll and second the corresponding test example. Right now I have to copy the dll each time to the example bin folder to test it. The better way during development is to define the path in the project settings for execute (in the test application) like qt do it for the mingw dlls. BTW: Is the frame grabber / camera now working? Feedback to the supporters is a nice thing ;-)! Best Regards, Carsten 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