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.4k Topics 34.5k Posts
  • Projects, QML and file locations

    2
    0 Votes
    2 Posts
    2k Views
    D

    You can add them as resources (either internal or external) and add them as OTHER_FILES to .pro (it will show them in QtCreator)

  • 0 Votes
    6 Posts
    5k Views
    S

    You have to store it as a session. When you next time load this session - then the path is already set correctly.

    Best regards

  • QDoc3 and stylesheets

    10
    0 Votes
    10 Posts
    6k Views
    E

    Thanks very much for all your valuable help. I've started messing around with includes to see if I can get something positive to happen, and I'll take a look at the qdoc3 source (although much of it will be like Greek to me).

    Thanks again.

  • Qt Creator 2.0.1 Windows

    6
    0 Votes
    6 Posts
    7k Views
    T

    bonzadog: We need to cater for different people:-)

    Qt Creator is just "Qt Creator":http://qt.nokia.com/products/developer-tools?currentflipperobject=821c7594d32e33932297b1e065a976b8 without anything else. This is ideal for the guys that build their own Qt.

    Then there is the "Qt SDK":http://qt.nokia.com/downloads: It contains Qt for the desktop and Qt Creator. That is mostly likely what you want.

    Finally there is "Nokia QT SDK":http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html: It contains Qt versions for all kinds of Nokia devices plus Qt Creator. A desktop Qt version is not included here.

  • 0 Votes
    5 Posts
    8k Views
    S

    So, how do I fix this? I tried commenting out both the DESTDIR and the LIBS, but now it won't compile in Qt Creator. The goal is to create a .pro file that will work with both development environments. Sorry Nokia, VS2008 simply has way too many features for C++ not to use it, besides, I still have not figured out how to get Qt Creator to debug the code.

  • [Solved] qmake with subdirs

    5
    0 Votes
    5 Posts
    12k 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
    5k 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
    10k 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
    8k 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
    9k 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.

  • 0 Votes
    18 Posts
    14k 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]

  • 0 Votes
    8 Posts
    7k 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.

  • 0 Votes
    21 Posts
    10k 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.

  • 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...