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
  • How to get path to QT includes?

    5
    0 Votes
    5 Posts
    4k Views
    T
    Run "qmake -query". That will dump all the information it has on the Qt it came with, including all kinds of directories containing binaries/headers/examples and whatnot.
  • Steam devday presentation introducing debugging on Linux using Qt Creator

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Sweet ! I went through the video quickly, looks like it's a very nice introduction to Qt Creator :)
  • Run settings: only a few variables available?

    1
    0 Votes
    1 Posts
    634 Views
    No one has replied
  • Visual Studio Add-In for VS2012

    9
    0 Votes
    9 Posts
    46k Views
    F
    [quote author="tesmai4" date="1390909774"]Download link is not working. where can I download this Add-in for Visual Studio 2012 Professional (I am using QT version 4.8)? Regards, Tariq[/quote] http://qt-project.org/downloads There is currently no version that supports Qt 4.x for Visual Studio 2012.
  • QtCreator RemoteLinux - can't run and debug Plugins

    3
    0 Votes
    3 Posts
    2k Views
    J
    Yes, I know. So, I set an custom executable in the Project Settings. Then, the executable loads the plugin, and I can debug it. But with a remote linux target, I can't choose a remote custom executable!?
  • Qml2puppet not found even when compiled locally

    3
    0 Votes
    3 Posts
    1k Views
    B
    I have already built qml2puppet and I have it in /usr/local/Qt-5.2.2/qml2puppet. The problem here is - why does Qt Creator search for qml2puppet in /bin/ directory instead of /usr/local/Qt-5.2.2/bin/ directory. [quote author="EricRFMA" date="1391902793"]I just went through the same thing with no issues. I think the only difference is that I don't have QT_DIR set. In the qml2puppet directory I did : @/Volumes/Projects/Qt5.2.1/bin/qmake make -r@ Then, the qml2puppet executable appears in <code> /Volumes/Projects/Qt5.2.1/bin/qml2puppet.app/Contents/MacOS</code> as advertised. Is your <code>qmake</code> in <code>/usr/local/Qt-5.2.2/bin</code>? The bin directory where the <code>qmake</code> resides seems to be pivotal in deciding where the build results land. In this case it seems that <code>qml2puppet.app</code> lands in the same directory where the <code>qmake</code> binary resides. Hope this helps...[/quote]
  • How to remove autodetected debugger entry?

    4
    0 Votes
    4 Posts
    3k Views
    JKSHJ
    Hi, Qt Creator's GUI needs improvement for the management of kits/Qt-versions/debuggers. In the meantime, you can rename/remove the debugger entry by editing @C:\Users[Username]\AppData\Local\Roaming\QtProject\qtcreator\debuggers.xml@ [quote author="ArbolOne" date="1391922129"]I would like to know if there is a way to use the Qt library, but without the "Creator"[/quote]You can integrate Qt into Visual Studio (Professional version and higher) using the VS Add-In. You can even build your projects from the command line if you want.
  • Git config

    4
    0 Votes
    4 Posts
    1k Views
    K
    The .pro files use the "qmake syntax.":http://qt-project.org/doc/qt-5/qmake-manual.html In general you should use Qt creator to add files (e.g. Add Existing Files). The build is often done in a build directory which is separate.
  • The gdb process terminated unexpectedly (code 1)

    3
    0 Votes
    3 Posts
    10k Views
    A
    As side note: The debugger settings need to point to a gdb, not gdbserver.
  • Qt for Tizen: Error in Building Tizen plugin for Qt Creator

    2
    0 Votes
    2 Posts
    790 Views
    A
    There seems to be a QT += network missing somewhere, possibly in tizen.pro.
  • Anonymous union

    3
    0 Votes
    3 Posts
    2k Views
    A
    Please report that at bugreports.qt-project.org.
  • QBS rule for call objdump

    2
    0 Votes
    2 Posts
    1k Views
    A
    You could try asking on the mailing list, i.e. http://lists.qt-project.org/mailman/listinfo/qbs . The forums are usually not monitored by developers.
  • [SOLVED] Debugging a plugin?

    5
    0 Votes
    5 Posts
    3k Views
    SGaistS
    You're welcome ! Surprising indeed. You also need to ensure that you are all using the same Qt version
  • QtCreator debugging DLL - process list always empty

    4
    0 Votes
    4 Posts
    2k Views
    A
    You have to specify a 'Kit' to get it working. In my case no kit was specified but developing was possible nevertheless. A message would be nice at this place to inform the user about the problem because the buttons at the bottom of the dialog had no effect. There was no hint.
  • QSqlDatabase: QTDS driver not loaded

    2
    0 Votes
    2 Posts
    1k Views
    G
    self answer: When a linux app loads it need to be able to access all the libXXX.so it needs. "ld" will look for them in any directory declared in the "LD_LIBRARY_PATH" variable However Qt seems to load its plugins dynamically from some paths which can be found there: @QCoreApplication app(argc,argv); qDebug() << app.libraryPaths();@ which printed @("/my/App/Path","/Qt/Dir/Path" )@ And from one of this path it should load the plugins. So if in qtDir you have @/Qt/Dir/Path/plugins/sqldrivers/libqsqltds.so@ You want to make sure to deploy something like: @/my/App/Path/sqldrivers/libqsqltds.so@ this worked fine because the app path is always in "app.libraryPaths()". However, where things get complicated it that libqsqltds.so requires "libsybdb.so.5" to work properly. Which I knew so there also was a @/my/App/Path/sqldrivers/libsybdb.so.5 @ which was wrong because Qt loads dynamically libqsqltds.so but not its dependency, which it seems ld expects to find the usual way ( e.g. in the LD_LIBRARY_PATH ) The fact is that in my dev/integration environments I had libsybdb.so.5 in my path, but not in my production environment. So whatever Qt plugins you need make sure to copy the plugin directory ( with only the .so inside ) to your production environment. And Also make sure that performing: @ldd /my/App/Path/sqldrivers/libsybdb.so.5@ will not print any "not found" as these dependency will not appear with: @ldd /my/App/Path/myAppBin@
  • Empty .ts file after lupdate

    12
    0 Votes
    12 Posts
    7k Views
    G
    Lupdate doesn't care about conditionals, so you can do something like this in your.pro file: evilhack{ SOURCES += qml\qmlfile1.qml qml\qmlfile2.qml qml\qmlfile3.qml } and it will be picked up by lupdate, but left out from compilations etc
  • QtCreator autocompletion window keeps resizing continuously

    2
    0 Votes
    2 Posts
    800 Views
    SGaistS
    Hi and welcome to devnet, Yes, I think you can, or If you want to be sure, you can also ask on the qt-creactor mailing list, you'll find there Qt Creator's developers/maintainers
  • 0 Votes
    4 Posts
    1k Views
    R
    Did I recently read correctly that Google is giving up on their code stuff?
  • 0 Votes
    10 Posts
    6k Views
    C
    [quote author="gyll" date="1391696460"]Actually it has been fixed a few weeks ago already, it was working fine in the nightly builds that i recommended (that's why i didn't come back with a new comment to this post). Glad it's fixed though, apparently it was a regression[/quote] Yea I saw your post of course, but I didn't have the time to switch to the nightlies for a fix, and I especially couldn't afford any instabilities (which are always a possibility with nightlies). I'm just glad the fix has reached the stable branch and everything is back to working as it should :)
  • QThread

    2
    0 Votes
    2 Posts
    764 Views
    A
    Perhaps you should use a database backend with proper indexing? You could even use an in-memory SQLite database on which you use a QSqlQueryModel.