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
  • Is it possible to use any QML Parser Tool?

    Unsolved parser qml tools qt5
    7
    1 Votes
    7 Posts
    2k Views
    KH-219DesignK
    Are you looking to do error-checking and error-prevention by ensuring (before "shipping" an application) that all your C++ types that should be registered are, indeed, actually properly registered? If that is your goal, then I commend you. I am interested in that topic as well. So far, I have been able to greatly increase detection of many such issues using a combination of: total ban on "qml warnings". (things that qml prints as "warnings" tend to be what I consider fatal bugs). launch the application during automated testing use automated scripts to scan the output of the launched application for any forbidden output such as "unregistered datatype" and "failed to load component" The ban on warnings that I mention in point (1) is achieved by installing (in C++) a Qt custom message handler to spy on all logged messages and abort if any messages are "warnings" emanating from a qml file: https://github.com/219-design/qt-qml-project-template-with-ci/blob/4d81552d77/src/app/qml_message_interceptor.cc#L44 Launching the application during C.I. on a headless machine is done with Xvfb: https://github.com/219-design/qt-qml-project-template-with-ci/blob/4d81552d772c32b7d62edb4b4f0f678ca92bed4f/run_all_tests.sh#L50 The warnings-ban could be used on any platform. The Xvfb automation, to my knowledge, would be limited to Linux applications. Therefore a parser-based detection system could be a more cross-platform portable solution. If you come up with a parsing-based solution, I'm sure that I and many other users that combine C++ with QML would be happy to try out your solution.
  • Run script only in Release mode

    Unsolved
    4
    0 Votes
    4 Posts
    440 Views
    J.HilkJ
    @GeraldBrandt take a look at the documentation section scopes and conditions I believe for Linux the identifier is unix
  • Follow function or variable on cursor took tool long

    Unsolved
    2
    0 Votes
    2 Posts
    204 Views
    J.HilkJ
    hi @mrluzeiro reducing the number off lines inside your classes usually helps :) maybe Turing off the clang code model will help as well, it can cause trouble in this regard.
  • Problem while creating a project

    Unsolved
    4
    0 Votes
    4 Posts
    299 Views
    Qterry.wangQ
    [image: 7c5f9858-7d50-48b4-9791-7d5756e96fd4.png]
  • Callgrind on Embedded Linux

    Unsolved
    2
    0 Votes
    2 Posts
    587 Views
    M
    Problem too old, but still actual. Is there any way to run callgring on remote embedded linux?
  • Migration from Netbeans to Qt Creator

    Solved
    7
    0 Votes
    7 Posts
    996 Views
    P
    @JKSH Here is the link https://bugreports.qt.io/browse/QTCREATORBUG-23771 [edit aha_1980: simplified link]
  • QDoc natural language settings

    Solved
    3
    0 Votes
    3 Posts
    287 Views
    CorniceC
    @SGaist Wow, it worked! thank you!
  • QMake not invoking uic for form files.

    Solved
    5
    0 Votes
    5 Posts
    593 Views
    D
    Had to figure out where the marker was hidden
  • Qt Creator code model warning from intel intrinsics header

    Solved
    2
    0 Votes
    2 Posts
    272 Views
    P
    I found a solution to this. Adding -fms-extensions to the config made it go away. I can't see this anywhere in our setup. A bit strange, but this is only for the parsing!
  • Turn off QtCreator interpretation of .doc file as Word binary.

    Solved
    4
    0 Votes
    4 Posts
    338 Views
    F
    Thanks for the feedback, I agree, I've changed my file extensions to '.txt' instead. Have a good day! Fredrik
  • Macros for Qt Creator code model

    Solved
    6
    0 Votes
    6 Posts
    994 Views
    P
    Oh well, "Open cmake project" worked about as well as I expected. Creator just terminated. That's more a reflection of our heathrobinson Cmake files.
  • Qt MaintenanceTool & Online Installer Network error : Socket operation timed out

    Unsolved
    4
    0 Votes
    4 Posts
    763 Views
    sierdzioS
    @xylosper said in Qt MaintenanceTool & Online Installer Network error : Socket operation timed out: @sierdzio I have same issue and it's been more than couple of weeks. Still it doesn't work. Yeah but in recent days it's got even worse :-) Anyway, there is a solution - switch to Linux, there the maintenance tool works fine. But it's not a solution that will fit everybody. If any of you are commercial users - use your special powers to kick some butts so this gets fixed. If you aren't - well, either wait or build manually from source :-/
  • 0 Votes
    5 Posts
    870 Views
    Christian EhrlicherC
    @firecat said in Can QtCreator's .pro file be formatted? Make text align and look better? Does ClangFormat-like tools work on .pro files?: Does Qt have any plans to develop this tool? I doubt since Qt switches to cmake in Qt6 although qmake is supported too but no longer really developed.
  • Osx include files installed with brew

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    R
    i use this .pro snippet (change gmp w/ssh) or what so ever. GMP=/usr/local/Cellar/gmp/6.2.0 # GMP brew location INCLUDEPATH += $${GMP}/include macx: LIBS += -L$${GMP}/lib -lgmp or in a more general form: lib=gmp lib_loc=$$system(/usr/local/bin/brew --prefix $${lib}) INCLUDEPATH += $${lib_loc}/include macx: LIBS += -L$${lib_loc}/lib -l$${lib}
  • How to set library path for qtcreator in Ubuntu ?

    Unsolved
    9
    0 Votes
    9 Posts
    10k Views
    JonBJ
    @laine I don't know if this is your problem/you are already aware, but do you understand that .bashrc is not always read? It's only read in when bash is started interactively (like a terminal shell). Do you need to check if your .profile/.bash_profile is source-ing it?
  • Problem with Mini GW

    Solved
    4
    0 Votes
    4 Posts
    357 Views
    Pablo J. RoginaP
    @YoshiiMe so if your issue is solved, please don't forget to mark your post as such! Thanks.
  • Qt3DStudio .materialdef + multiple devs

    Unsolved
    1
    0 Votes
    1 Posts
    159 Views
    No one has replied
  • How to generate <app>_plugin_import.cpp using Qmake [plugin Static build] ?

    Unsolved
    5
    0 Votes
    5 Posts
    388 Views
    M
    Ok i will check , thanks for your reply
  • How to set compile for qmake

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    R
    @Pablo-J-Rogina thank you for hints and useful links (also I should to do 'make clean' before calling qmake)
  • How to adapt QtCreator with 4K screen in Ubuntu ?

    Unsolved
    4
    0 Votes
    4 Posts
    815 Views
    JKSHJ
    @laine said in How to adapt QtCreator with 4K screen in Ubuntu ?: Do you compile qt-wayland support lib yourself ? Or how do you enable it ? I don't know, sorry; I've never done it myself. I suggest you subscribe to the Qt Creator mailing list and asking there -- you'll find Qt engineers on that list.