Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.6k Topics 35.5k Posts
  • [Solved] qmake with subdirs

    5
    0 Votes
    5 Posts
    13k Views
    S
    In qtcreator project setting you can able to create specific 'mode' compilation, you can add release mode.
  • Tool versions and capabilities/ C++

    9
    0 Votes
    9 Posts
    6k Views
    R
    I was thinking the feature list might go from simplest to most sophisticated. I'm sure all the C++ compilers support for loops:-) But obviously, I'm really looking for compiler features that are not implemented on some compilers, so that Qt coders know to avoid them, in the interest of portability, even when using compilers that do support these features.
  • Qt creator and Msvc debug ... so slow !

    8
    0 Votes
    8 Posts
    11k Views
    F
    To keep you updated: the new debugging engine slowly takes shape in the master branch of Qt Creator (due to become Qt Creator 2.2). You are very welcome to give it a try. As before, you need an installation of the Debugging Tools for Windows. The master branch of Qt Creator should be compiled using a version of the Microsoft Visual C++ Compiler that matches the Debugging Tools for Windows installation (32bit Debugging Tools -> 32 bit compiler, (64bit Debugging Tools -> 64 bit compiler). The new engine will then show up on in the Debugger Settings as CDB (new, experimental) Press Autodetect and check the group box - it should display the path to the executable cdb.exe of the_ Debugging Tools for Windows_. You should then be all set up. It is advisable keep an eye on the debugger log (Window/Views/Debugger Log in Debug mode). Currently, it should be able to display string classes, most QVariant's and simple containers (lists, vectors). The startup time for bigger projects should be considerably reduced. Technically speaking, we no longer link to the Debugging Tools for Windows directly but control the cdb.exe process (as we do with gdb), which has extension library (qtcreatorcdbext) loaded. It is thus decoupled from the UI and lock-ups should no longer occur. It also enables us to control a 64bit cdb.exe from Qt Creator built with 32 bit and vice versa - all it takes is to recompile the extension library (qtcreatorcdbext under src/libs/qtcreatorcdbext) with the right compiler. The extension library does not require Qt.
  • BOM and QtCreator, bug or not?

    6
    0 Votes
    6 Posts
    6k Views
    T
    Denis: All this wold go away if microsoft would finally switch to unicode based encoding schemes by default. Mac and Linux are doing that for ages now and Windows does support it too (unicode is in there since Win 95 IIRC), it is just that they have not yet switched the default. A issue regarding BOM handling was recently fixed in the master branch of creator ("QTCREATORBUG-1857":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1857), maybe that fixes your BOM issue, too?
  • Further tools

    17
    0 Votes
    17 Posts
    9k Views
    S
    Ok, i don't understand you search add-ons for commercial application. [quote author="DeVeL-2010" date="1292322150"]thanx so far your replys. But I'm not only interested in reporting tools. @stuk qt-app is nice but many projects are GPL based and/or dead. I'm looking for tools/add-ons for commercial use, mainly. And one aspect is some reliabilty in the development of this tools. Some tools I found so far I add to the wiki page. Well, it inspired other to follow my idea. :-) [/quote]
  • Qmlviewer no longer comes with Qt Creator

    11
    0 Votes
    11 Posts
    10k Views
    M
    @xsacha I did not give up QML. I just gave up qmlviewer. Like you said, I made some glue code to expose some functionalities I needed to QML.
  • For writing user documentation - what tools do you suggest?

    18
    0 Votes
    18 Posts
    15k Views
    S
    Oh sorry, mistake you want a source code with an example of the api. So look the "qextserial":http://qextserialport.sourceforge.net/ project, it is a project to use serial port with qt. This project have documentation in doxygen and if you download the source you see the doxygen comment in the source. This is an example @ /*! \class QextSerialBase \version 1.0.0 \author Stefan Sander A common base class for Win_QextSerialBase, Posix_QextSerialBase and QextSerialPort. / #ifdef QT_THREAD_SUPPORT QMutex QextSerialBase::mutex=NULL; unsigned long QextSerialBase::refCount=0; #endif /*! \fn QextSerialBase::QextSerialBase() Default constructor. */ QextSerialBase::QextSerialBase() : QIODevice() { #ifdef TTY_WIN setPortName("COM1"); #elif defined(TTY_IRIX) setPortName("/dev/ttyf1"); #elif defined(TTY_HPUX) setPortName("/dev/tty1p0"); #elif defined(TTY_SUN) setPortName("/dev/ttya"); #elif defined(TTY_DIGITAL) setPortName("/dev/tty01"); #elif defined(TTY_FREEBSD) setPortName("/dev/ttyd1"); #else setPortName("/dev/ttyS0"); #endif construct(); } /*! \fn QextSerialBase::QextSerialBase(const QString & name) Construct a port and assign it to the device specified by the name parameter. */ QextSerialBase::QextSerialBase(const QString & name) : QIODevice() { setPortName(name); construct(); } /*! \fn QextSerialBase::~QextSerialBase() Standard destructor. */ QextSerialBase::~QextSerialBase() { #ifdef QT_THREAD_SUPPORT refCount--; if (mutex && refCount==0) { delete mutex; mutex=NULL; } #endif } /*! \fn void QextSerialBase::construct() Common constructor function for setting up default port settings. (115200 Baud, 8N1, Hardware flow control where supported, otherwise no flow control, and 500 ms timeout). */ void QextSerialBase::construct() { Settings.BaudRate=BAUD115200; Settings.DataBits=DATA_8; Settings.Parity=PAR_NONE; Settings.StopBits=STOP_1; Settings.FlowControl=FLOW_HARDWARE; Settings.Timeout_Sec=0; Settings.Timeout_Millisec=500; #ifdef QT_THREAD_SUPPORT if (!mutex) { mutex=new QMutex( QMutex::Recursive ); } refCount++; #endif setOpenMode(QIODevice::NotOpen); } /*! \fn void QextSerialBase::setPortName(const QString & name) Sets the name of the device associated with the object, e.g. "COM1", or "/dev/ttyS0". */ void QextSerialBase::setPortName(const QString & name) { port = name; } @ [quote author="Wolf P." date="1292253770"]Thanks, but this seems to be API docs...[/quote]
  • Qt Creator - ui as private member instead of inheriting from it.

    8
    0 Votes
    8 Posts
    8k Views
    G
    With regard to BC that's the only choice, true. But that's mainly an issue with libs. In applications it's not that important, IMHO. But you're right - in general it's the easiest approach and does not cause any troubles. Multiple inheritance can be confusing too :-)
  • Qmake source available?

    4
    0 Votes
    4 Posts
    8k Views
    B
    Also available in every source distribution of Qt.
  • Header inspector in CPP on QtCreator's sidebar...

    21
    0 Votes
    21 Posts
    14k Views
    ?
    confirm this seems to be missing in Creator 2.0.1 part (4.7.0 sdk ) see below: !http://media.share.ovi.com/m1/s/2628/7e9bf445552b4e74bd69c6f9e804bbf9.jpg(snapshot)!
  • QDOC3 for Qt-based application

    7
    0 Votes
    7 Posts
    7k Views
    G
    Doxygen also can now create qhp files, and was actually written as a qdoc clone which wasn't tied to Qt. It's one of the main tools used for documentation in many, many projects. If you write to qdoc3, you're basically stuck with the very limited information in the Qt docs (and of course whatever you can glean between here, qt-interest, and #qt), whereas if you are using Doxygen, there is a big manual and a big community using it.
  • [Suggestion] Remove multiple files from project

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    ?
    well unfortunately, this bug was closed as "out of scope" in the bug tracker. so closing this thread :(
  • Eclipse plug-in still maintained?

    2
    0 Votes
    2 Posts
    5k Views
    G
    I don't think the Eclipse plugin has been maintained in quite some time - and it doesn't appear to be in Gitorious, either.
  • Custom Process Step

    3
    0 Votes
    3 Posts
    6k Views
    G
    Take a look at "the qmake documentation":http://doc.trolltech.com/4.7/qmake-environment-reference.html#customizing-makefile-output and the "Undocumented qmake":http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#Custom_tools page on QtCentre. (This functionality has always been documented, but IMHO the QtCentre page is clearer. (Disclaimer: I wrote that wiki page...)
  • Other tools for Qt Development

    9
    0 Votes
    9 Posts
    10k Views
    G
    By the by - I have had good success using Boost::Graph and Qt together. This might be overkill for what you need, but it's the best I've found. I've not done any OSX development at all, but I've also had good success with simple tools like dmalloc, DUMA, and mpatrol. I wrote an (IMNSHO) incredibly awesome one about ten years ago, but it breaks badly on C++ templates so it never got released. Someday I will have time to figure out how to rewrite it to make it work again...
  • Qt Creator with multiple monitors

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    G
    ok, sorry, the I ask the admins to close this thread. thanks
  • Qt Creator Mouse Question

    5
    0 Votes
    5 Posts
    5k Views
    G
    cazador, I can confirm this. It only wasn't too annoying for me to fill a bugreport. I'm sure the creator guys would appreciate a report on the "bug tracker": http://bugreports.qt.nokia.com.
  • 0 Votes
    7 Posts
    6k Views
    F
    Yes... I asked about that on another thread and got a less "definitive" answer... it doesn't seem that will be on 2.1 ...
  • How to install Qt Beta or RC versions

    13
    0 Votes
    13 Posts
    9k Views
    D
    I also have installed many versions of Creator: the packages from Debian, the Nokia Qt SDK and the 2.1 RC of Creator. All use different prefixes, so it's not a problem. If I were you, though, i would uninstall the old one if you don't need it.
  • Qt Creator - how to create source package for maemo autobuilder?

    8
    0 Votes
    8 Posts
    6k Views
    F
    [quote author="zambesi" date="1291651212"][quote author="fcrochik" date="1291649507"] [quote author="zambesi" date="1291625842"] [quote author="fcrochik" date="1291525663"] Is there a way to create a source package (packagename_x.y.x_source.changes, packagename_x.y.x.dsc, packagename_x.y.x.tar.gz) using qt creator? is it possible on windows? [/quote] Currently (version 2.1), there is no support for that. But 2.2 will have it, including the ability to optionally upload the generated files to the auto builder. [/quote] This is really great news if it is true. Are you planning on meego support as well? building rpm packages and uploading to the meego obs?[/quote] Obviously, Creator needs to support Meego at some point, and I think it's mostly a question of when the low-level packaging tools are ready. OBS is certainly a topic that belongs into this realm.[/quote] I have to say that I liked you previous post much better :) It was much more decisive: we will have this on 2.2! Just kidding... I imagine that at this time in the game meego is probably a much higher priority than maemo... Not that I won't be glad to have the integration with maemo...