[Qt-creator] Get the type of project (qmake, cmake, ...) and the list of files in the project
Hello, I'm writing a pluging that needs to make changes to the .pro file. Is there a way to know from within my plugin which type of project is opened? I mean, is it a project based on QMake, based on CMake, etc. And I need to have a list of all the files in the project to see if a certain file already exists. This is something I can also do without the help of other Qt Creator plugins, but I think it would be nicer to use already existing functionality. How can I access this information? ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Displaying mixed source with disassembly in Qt Creator?
On Tuesday 31 August 2010 16:41:14 ext Ed Sutton wrote: I am looking for a quick way to evaluate coding optimizations. Is there a way to display both the source code and the generated assembly? Mixed source with assembly is visible during debugging when in instruction-wise mode of operation. There's no static version of it. Qt Creator 1.3.1 (Qt 4.6.1) Jan 18, 2010 I think 1.3.1 does not have mixed output, only plain disassembler in that case. mixed is new in 2.0 IIRC. 2.0.1 is recommended anyway. GDB 6.8 [And that misses all the Python bits ;-}] Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Get the type of project (qmake, cmake, ...) and the list of files in the project
Hi Tim! On 01.09.2010 08:18, ext Tim Beaulen wrote: I'm writing a pluging that needs to make changes to the .pro file. Is there a way to know from within my plugin which type of project is opened? I mean, is it a project based on QMake, based on CMake, etc. Each (type of) project has an id which is used to create and restore it. So this can be used to identify the type of project. The id is available by calling the id() method on any project (or anything connected to projects;-). And I need to have a list of all the files in the project to see if a certain file already exists. The rootProjectNode() method on project should provide you the top level node of the project. You should be able to extract a file list by traversing the nodes. This is something I can also do without the help of other Qt Creator plugins, but I think it would be nicer to use already existing functionality. How would you do that? Just traversing the filesystem is not good since you can run into files not part of the project and you do not want to act on those. How can I access this information? 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
Re: [Qt-creator] QSystemInfo Error
On 08/30/2010 02:46 AM, Christian Kamm wrote: On Monday 30 August 2010 00:02:10 ext dhk wrote: I still haven't gotten this to build without the QSystemInfo error. Is there anything special I have to do when installing the software? Do I need to uninstall the 1.n version? Something is terrible wrong. I'm on a Gentoo amd64 box and I installed the Nokia package and the sdk a few times and an ordinary user (not root). I'm trying to do the battery indicator tutorial and the quickstart and both have the same error. Eventually I will be trying to get this on a Microsoft CE arm device. I've grep'ed for QSystemInfo over my entire system and it doesn't appear to exist. Please check for these files in your Nokia Qt SDK installation directory: Simulator/QtMobility/gcc/include/QtSystemInfo Simulator/QtMobility/gcc/lib/libQtSystemInfo.so Simulator/Qt/gcc/mkspecs/mobility.prf Simulator/Qt/gcc/bin/qmake If one or more of them are missing, your installation of the Simulator Qt target is broken. The installer should have registered this Qt version with Creator, double check that in Tools-Options-Qt4. Make sure you're using the Qt Simulator target with this Qt version for building the tutorial. If the files are missing or building still fails, please create a bug report against the Nokia Qt SDK installer on http://bugreports.qt.nokia.com/ . Regards, Christian Thanks for the tips. It appear to be an environment problem. I got better results using the -I and after reading the qmake tutorial/documentation. However, it still doesn't link. Since I installed this as a user and not root I'm want to uninstall the Nokia Qt SDK and install it as root. To do the uninstall can I just delete the ~/Nokia directory or is the install spread out over other directories in my home directory? After a standard install as root I'll start over again and see how it goes. Thanks, --dhk ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Version Renaming, Part 2.
So I saw snapshots of 2.1.80 for a few days and now it goes back building 2.0.1. Why build snapshots of a release version? :) Are we going to get 2.0.90 snapshots soon? And it will be built from the Master branch, right? On 8/27/10 6:07 AM, André Pönitz wrote: Hi all. In the aftermath of the 2.1 - 2.0.1 version number change some cleanup in JIRA seems to be in order. So I'll rename the current master which is numerically equal to version 2.1.80 (that was scheduled to become 2.2) into 2.0.90, scheduled to evolve into 2.1. This affects potential external plugins that currently have a version 2.1.80 (and only those), they would have to follow suit to change to 2.0.90. Otherwise there should be no change needed, as we currently require exact version matching and therefore the wrong ordering 2.1.80 (== 2.0.90) 2.1 does not affect functionality. JIRA might take a few minutes, maybe hours to adjust to the new layout. Andre' -- 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
Re: [Qt-creator] Version Renaming, Part 2.
On Wed, Sep 01, 2010 at 09:53:29AM -0400, Stephen Chu wrote: So I saw snapshots of 2.1.80 for a few days and now it goes back building 2.0.1. Why build snapshots of a release version? :) Because the snapshot builds have some historical dependencies on stuff that has hard connections to actual Qt releases. In theory, cutting these dependencies is just a matter of plugging in and out a few cables and fixing a few scripts. In practice, someone has to find the time to actually do it, so I don't think anything will happen in this area before Qt 4.7 is out. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator