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.3k Posts
  • 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.
  • 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
    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.
  • Header inspector in CPP on QtCreator's sidebar...

    21
    0 Votes
    21 Posts
    12k 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
    5k 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
    8k 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...
  • Table editor for my own widget

    14
    0 Votes
    14 Posts
    9k Views
    G
    No problem, you're welcome. Maybe you can make a small wiki article, once you have it working. I guess, this question will pop up once in a while...
  • Is there a stable HID library that supports cross-platform?

    2
    0 Votes
    2 Posts
    4k Views
    X
    Well there is a plan to have this in QtMobility in the future. They announced this when QtMobility 1.1 was released. But it is not yet scheduled in the roadmap. It might not make it in to QtMobility 1.2. So you may have to use some third party library.
  • Source files do not appear

    23
    0 Votes
    23 Posts
    35k Views
    D
    Volker, it is "http://qt.nokia.com/downloads":http://qt.nokia.com/downloads . Text itself is at bottom of the page under "Other downloads" header
  • Question on debugging hybrid apps in Creator

    4
    0 Votes
    4 Posts
    3k Views
    ?
    Hi Kai, basically looking at QTCREATORBUG-3148 (this is for 2.1 I see in bugs tracker) also, breakpoints working with qml and thus ability to debug hybrid apps ...
  • [Solved] [Question] Applying effects in the Qml visual editor

    7
    0 Votes
    7 Posts
    4k Views
    ?
    [quote author="chetankjain" date="1291357423"]ok was going through the bugs list and read that they've been pulled out due to performance issues and will be reintroduced in a future release.. I hadn't kept track[/quote] no denis,sorry my initial reply is misleading