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
  • QtCreator 4.4 doesn't see Auto-detected Kits

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    alik_coA
    @aha_1980 Thanks!
  • Qt MaintenanceTool : 'Failure to fetch repositories' error.

    Unsolved
    10
    0 Votes
    10 Posts
    3k Views
    SGaistS
    What do you mean "I installed it with QtSdkRepoChooser"
  • QtCreator updated and float type is not highlighted in C any more

    Solved
    18
    0 Votes
    18 Posts
    4k Views
    aha_1980A
    @aha_1980 said in QtCreator updated and float type is not highlighted in C any more: I said that "bool, true and false" are not highlighted anymore. And by disabling "false", "float" was disabled too, sorry. The fix is under review: https://codereview.qt-project.org/205025 So I guess this can be closed as solved.
  • Autotest doesn't find any tests ("Test Results" window is empty)

    Unsolved test creator
    6
    0 Votes
    6 Posts
    5k Views
    SebastianMS
    I've partialy analysed AutoTest code. For QTest it checks if given source file (after macro preprocesing) has QTest include and QTest::exec() somewhere in code. In my case it lead to usage of TestRunner modified to store function object #define DECLARE_TEST_RUNNER(className) \ namespace { \ int executeTestClass(int argc, char* argv[]) \ { \ className test; \ return QTest::qExec(&test, argc, argv); \ }; \ static char test_##className = \ TestRunner::Instance().RegisterTestClassRunner(executeTestClass); \ } Macro is placed at begining of each CPP file with test details (to decouple as much as possible) However Autotest still acts strangely. Sometimes it discover tests, sometimes not. I believe that it may search in source context of currently selected run target. PS: When I expanded one of DECLARE_TEST_RUNNER macro - AutoTest start displaying green arrows. Not before. Building main exe or ut.exe isn't helping. Calling 'Refresh test' from Tools->Tests also doesn't help. I still don't know what triggers test gathering. PSS: In each test binary at least one QTest::qExec should be expanded out of MACRO. From this point - AutoTest shows also test runners hidden in MACRO and run then all.
  • Qt Creator 4.4 lacks list of CMake custom targets in Projects

    Solved cmake qt creator 4.4 target
    1
    0 Votes
    1 Posts
    939 Views
    No one has replied
  • Font size change on different machines (QLabel inside QVBOXLayout)

    Unsolved
    4
    0 Votes
    4 Posts
    5k Views
    R
    @Akzmn Note that if you use setPixelSize() method, for the same size font, on higher resolution screen (higher density of pixels and hence smaller pixel size), it will appear smaller. Is this what you want? Or you want it appear physically the same size on screens with different resolutions?
  • [QtCreator] Clang code model & <cstdint>

    Unsolved
    1
    0 Votes
    1 Posts
    467 Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    mrjjM
    Hi Only MainWindow can have a ToolBar in designer. However, you can add one from code but not all features work when its a widget it lives in. https://stackoverflow.com/questions/38392322/how-to-create-qtoolbar-in-qwidget
  • QMediaPlayer fails on windows?

    Unsolved
    15
    0 Votes
    15 Posts
    6k Views
    D
    yes, WMP can play h.264 files, but i'm not convinced that is a fair test, because WMP is quite savvy about choosing what back end to use to play the media you throw at it. Qt, on the other hand, is not.
  • Qt Creator keeps adding a 'serializer' run configuration

    Unsolved
    1
    0 Votes
    1 Posts
    366 Views
    No one has replied
  • How to integrate TortoiseSVN in qtcreator

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    J
    Hi jsulm, Thanks for your guidance.I successfully integrated the svn in SubVersion.
  • Install QT Creator - failed to start - it could not load Qt Platform

    Solved
    16
    0 Votes
    16 Posts
    7k Views
    P
    please look at this thread about Application can't start because could not find or load Qt
  • No debugging information after segfault

    Unsolved mingw gdb
    10
    0 Votes
    10 Posts
    4k Views
    S
    I tried to investigate the issue further and figured out the following: it seems to be a problem with gdb and its disassembler when I start gdb in the console, it doesn't show me where the crash occurs, too in the debugger log, I get an error message "Disassembler failed" I tried also on another VM (Win 10, also) and a Win 7 Desktop and it works on the VM, however not on the Desktop and my first VM. I have no clue what the differences between these installations are :-( Is anyone aware of any Windows/Qt/MinGW settings that could make the disassembler fail? Thanks for any ideas, Sebastian
  • when parsing .pro file, can i get a condition value (bool) from a python script?

    Solved
    3
    0 Votes
    3 Posts
    800 Views
    mrjjM
    Hi There is also UNAME = $$system(python /home/master/test.py ) message( it says: ($$UNAME) ) http://doc.qt.io/qt-5/qmake-function-reference.html [image: sH1AD4.png]
  • "#if 1" equivalent in .pro file?

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Replace 1 by true
  • Complete graphical coding as goal

    Unsolved
    3
    0 Votes
    3 Posts
    770 Views
    Viking66V
    @SGaist QxOrm seem to be the right direction. I will check it out I would like then to have a tool which superordinates scxml and QxOrm. That could reduce textual coding to an absolute limit
  • Application can't start because could not find or load Qt

    Solved
    23
    0 Votes
    23 Posts
    27k Views
    hskoglundH
    Probably the QT_PLUGIN_PATH setting is needed for Anaconda3 to run, but it needs to be removed for the other guys to be healthy. So, what you can do is to remove the QT_PLUGIN_PATH, open a CMD window and type control sysdm.cpl Then select the 3rd tab *Advanced" and click on the 4th (lowest) button (should be named "Environment variables" or something similar) Another dialog box opens which will allow you to remove QT_PLUGIN_PATH. Then if you want to run Anaconda 3, you can open a CMD window and type set QT_PLUGIN_PATH=c:\Anaconda3\Library\plugins\ and then start Anaconda 3 from that CMD window. That way the setting will affect only that CMD window and not the other Qt guys :-)
  • [qt creator] go to source files by F4 shortcut

    Unsolved qt creator source code
    4
    0 Votes
    4 Posts
    3k Views
    S
    So it doesn't work even with developer-build :/, so recompile myself didn't help, still any solution.
  • Help on mac: "Debugging Helpers"

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    kshegunovK
    It is possible. As a user programmer (for many years) I have never had the need to write my own debug helpers. You should try asking in the mailing list, where you may attract the attention of Qt's developers (they don't frequent the forum).
  • 0 Votes
    4 Posts
    1k Views
    SGaistS
    You can try to use the inheaderfile keyword.