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
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    6 Views
    No one has replied
  • How to launch GammaRay GUI

    Unsolved gammaray windows gui
    2
    1 Votes
    2 Posts
    2k Views
    gt6707aG
    Got it to work. The only way I got it to work is to launch from command line. ex: gammaray --probe PROBE_OF_CHOICE PATH_TO_QT_EXE\qt_app.exe. And of course the probe config must be the same as the app's build config. For reference, my environment is Windows 10. GammaRay on Qt 5.6 QtQuick 2.0 apps.
  • Qmake: List of special platform variables

    10
    0 Votes
    10 Posts
    27k Views
    ddImmersiveHPD
    @Asperamanca, I grep'd through mkspecs, and this is what I have in one of my qt 5.5 installations' mkspec folder: $ grep -E -o -r 'QMAKE_PLATFORM.*?$' aix-g++/qmake.conf: QMAKE_PLATFORM = aix aix-g++-64/qmake.conf: QMAKE_PLATFORM = aix aix-xlc/qmake.conf: QMAKE_PLATFORM = aix aix-xlc-64/qmake.conf: QMAKE_PLATFORM = aix android-g++/qmake.conf: QMAKE_PLATFORM = android blackberry-armle-v7-qcc/qmake.conf: QMAKE_PLATFORM += blackberry blackberry-x86-qcc/qmake.conf: QMAKE_PLATFORM += blackberry common/ios.conf: QMAKE_PLATFORM += ios common/linux-android.conf: QMAKE_PLATFORM += android common/linux.conf: QMAKE_PLATFORM += linux common/mac.conf: QMAKE_PLATFORM += mac darwin common/macx.conf: QMAKE_PLATFORM += osx macx common/msvc-desktop.conf: QMAKE_PLATFORM = win32 common/nacl/nacl-base.conf: QMAKE_PLATFORM = nacl $$QMAKE_PLATFORM common/qcc-base-qnx.conf: QMAKE_PLATFORM += qnx common/unix.conf: QMAKE_PLATFORM += unix posix common/wince/qmake.conf: QMAKE_PLATFORM += wince win32 common/winrt_winphone/qmake.conf: QMAKE_PLATFORM = winrt win32 cygwin-g++/qmake.conf: QMAKE_PLATFORM = cygwin unix posix darwin-g++/qmake.conf: QMAKE_PLATFORM = osx macx mac darwin features/spec_post.prf: QMAKE_PLATFORM) { features/spec_post.prf: QMAKE_PLATFORM = unix features/spec_post.prf: QMAKE_PLATFORM = osx macx mac darwin unix features/spec_post.prf: QMAKE_PLATFORM = win32 features/spec_post.prf: QMAKE_PLATFORM, macx):!contains(QMAKE_PLATFORM, osx) { features/spec_post.prf: QMAKE_PLATFORM = osx $$QMAKE_PLATFORM features/spec_post.prf: QMAKE_PLATFORM freebsd-g++/qmake.conf: QMAKE_PLATFORM = freebsd bsd freebsd-g++46/qmake.conf: QMAKE_PLATFORM = freebsd bsd freebsd-icc/qmake.conf: QMAKE_PLATFORM = freebsd bsd haiku-g++/qmake.conf: QMAKE_PLATFORM = haiku hpux-acc/qmake.conf: QMAKE_PLATFORM = hpux hpux-acc-64/qmake.conf: QMAKE_PLATFORM = hpux hpux-acc-o64/qmake.conf: QMAKE_PLATFORM = hpux hpux-g++/qmake.conf: QMAKE_PLATFORM = hpux hpux-g++-64/qmake.conf: QMAKE_PLATFORM = hpux hpuxi-acc-32/qmake.conf: QMAKE_PLATFORM = hpux hpuxi-acc-64/qmake.conf: QMAKE_PLATFORM = hpux hpuxi-g++-64/qmake.conf: QMAKE_PLATFORM = hpux hurd-g++/qmake.conf: QMAKE_PLATFORM += hurd irix-cc/qmake.conf: QMAKE_PLATFORM = irix irix-cc-64/qmake.conf: QMAKE_PLATFORM = irix irix-g++/qmake.conf: QMAKE_PLATFORM = irix irix-g++-64/qmake.conf: QMAKE_PLATFORM = irix linux-cxx/qmake.conf: QMAKE_PLATFORM = linux linux-kcc/qmake.conf: QMAKE_PLATFORM = linux linux-pgcc/qmake.conf: QMAKE_PLATFORM = linux lynxos-g++/qmake.conf: QMAKE_PLATFORM = lynxos netbsd-g++/qmake.conf: QMAKE_PLATFORM = netbsd bsd openbsd-g++/qmake.conf: QMAKE_PLATFORM = openbsd bsd sco-cc/qmake.conf: QMAKE_PLATFORM = sco sco-g++/qmake.conf: QMAKE_PLATFORM = sco solaris-cc/qmake.conf: QMAKE_PLATFORM = solaris solaris-cc-64/qmake.conf: QMAKE_PLATFORM = solaris solaris-g++/qmake.conf: QMAKE_PLATFORM = solaris solaris-g++-64/qmake.conf: QMAKE_PLATFORM = solaris tru64-cxx/qmake.conf: QMAKE_PLATFORM = tru64 tru64-g++/qmake.conf: QMAKE_PLATFORM = tru64 unixware-cc/qmake.conf: QMAKE_PLATFORM = unixware unixware-g++/qmake.conf: QMAKE_PLATFORM = unixware unsupported/freebsd-clang/qmake.conf: QMAKE_PLATFORM = freebsd bsd unsupported/linux-host-g++/qmake.conf: QMAKE_PLATFORM = linux unsupported/qnx-X11-g++/qmake.conf: QMAKE_PLATFORM = qnx unsupported/vxworks-ppc-dcc/qmake.conf: QMAKE_PLATFORM = vxworks unsupported/vxworks-ppc-g++/qmake.conf: QMAKE_PLATFORM = vxworks unsupported/vxworks-simpentium-dcc/qmake.conf: QMAKE_PLATFORM = vxworks unsupported/vxworks-simpentium-g++/qmake.conf: QMAKE_PLATFORM = vxworks win32-g++/qmake.conf: QMAKE_PLATFORM = win32 mingw win32-icc/qmake.conf: QMAKE_PLATFORM = win32 winphone-arm-msvc2013/qmake.conf: QMAKE_PLATFORM = winphone $$QMAKE_PLATFORM winphone-x86-msvc2013/qmake.conf: QMAKE_PLATFORM = winphone $$QMAKE_PLATFORM
  • Bug found in macdeployqt

    Unsolved macdeployqt mac tools
    3
    0 Votes
    3 Posts
    2k Views
    M
    @jsulm You're right. I don't know why I didn't think of that I filled in a bug report regarding this issue here: https://bugreports.qt.io/browse/QTBUG-51728
  • "More than half of Qt5 menu option is disabled in VS 2015 Community

    Unsolved
    1
    0 Votes
    1 Posts
    351 Views
    No one has replied
  • Qt 5.6: QMAKE and CONFIG = C++11 - is it safe to remove this?

    Solved qmake c++11 qt 5.6
    5
    0 Votes
    5 Posts
    5k Views
    Tom NaerlandT
    @krzaq I'm surprised anything changed at all with the c++14 flag. Are you using 5.6.0-rc ? In my caseCONFIG += c++11 c++14 doesn't seem to do anything at all when compiling to Android. I'm using 5.6.0-rc and with CONFIG += c++11 c++14 I'm just getting -std=c++11. With Qt 5.5.1 CONFIG += c++11 c++14 I get -std=c++1y added to the mix and I can use relevant functionality (std::make_unique).
  • QtCreator License

    Solved qtcreator license
    3
    0 Votes
    3 Posts
    4k Views
    deleted137D
    Thank you, @tekojo, for your answer.
  • Custom build step for subprojects

    Unsolved qt creator build steps subdirs
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    Modifying the .pro file from the outside is not the correct idea. Since you only want to increment the build number you can mix both. VERSION from the pro file and build number generator that you can take inspiration from here
  • Dark theme for Qt Creator

    3
    0 Votes
    3 Posts
    10k Views
    mervickM
    You can use this nice theme
  • need to list included .c files as test file dependancies

    2
    0 Votes
    2 Posts
    675 Views
    SGaistS
    Hi and welcome to devnet, qmake's DEPENDPATH might be of use. Hope it helps
  • Qt Creator scroll-bars too thin on KDE

    2
    0 Votes
    2 Posts
    505 Views
    SGaistS
    Hi, You can set a style sheet on Qt Creator for that. Note that I don't know the impact it can have on other parts of the application. Hope it helps
  • How to get Qbs Qt variables

    Solved
    2
    0 Votes
    2 Posts
    739 Views
    A
    Ok, here is the answer: Qt.core.incPath
  • QtCreator - C++ syntax highlighting based on Clang?

    Unsolved
    2
    0 Votes
    2 Posts
    790 Views
    SGaistS
    Hi, The correct repository is http://code.qt.io/cgit/qt-creator/qt-creator.git/
  • Qt Creator 3.1 - code style - mixing tabs and spaces in indentation

    Unsolved
    1
    0 Votes
    1 Posts
    581 Views
    No one has replied
  • Custom compound property in QDesigner properties editor

    Solved
    3
    0 Votes
    3 Posts
    766 Views
    Chris KawaC
    Only a subset of QVariant types are supported by the designer plugins. Scroll down here for a list.
  • How to customize settings for creating getter and setter methods?

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    S
    Check the Qt Creator instructions for snippets. I just followed the instructions and modified the auto-completed code for Q_PROPERTY so that the getter follows my company's coding style of "get" + Uppercased property name. You can probably create a snippet for what you want.
  • Several dock-related questions

    Unsolved qdockwidget qtabwidget
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    QDockWidget and QMainWindow are tied. That doesn't prevent you to use another QMainWindow as a central widget for your QMainWindow even though that would be a bit strange. Note that if you only want to work with dock widgets nothing forbids you to not use any central widget.
  • copy - add src files + resources into projects

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    ekkescornerE
    got answers from creator mailing list. 1. copy/paste resources: Actually if you open the qrc file in an editor in Qt Creator (e.g. “Open in Editor” from context menu in project tree, or through locator (ctrl+k)), and choose Add > Files there, then you are asked if you want to copy the files to the location of the qrc file if the files that you choose are not already located there. 3. copy/paste src code: Qt Creator does not provide “file explorer” functionalities (beside the remove and rename, which are there because they are actually .pro/.pri file editing features). Note that there are e.g. “Show in Explorer/Finder” in the context menu for nodes in the project tree. 4. generated code: That sounds like a sensible approach to me. (Note that you should use $$PWD/..... to refer to files with a relative to the .pri file). now I can go on and prepare my blog
  • Qt 5.x in mac version is slow to compiling

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    darongyiD
    @jsulm Ok..
  • Ui differences between qtcreator and qt designer

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    jsulmJ
    @auroraqt How does the UI look in the designer on Ubuntu?