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
  • Qt Creator Not Recognizing New Project Build Directory

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    C
    Solved the problem! The default working directory is the working directory as of the last time you closed the project (maybe save not sure). So I set the working directory to the new one by unchecking shadow build, closed the project, then re-opened it and the default shadow build working directory was updated. Now clicking shadow build works again. Somewhat unintuitive but oh well.
  • Library errors when debugging with Qt Creator

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    aha_1980A
    @tkansgar so please close this thread as solved now. thanks
  • How to use scc and scxml with a qmake-based project?

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    R
    @jsulm that that doc page refers to a specific class (QScxmlCompiler::Loader) which apparently was added subsequently to a class introduced in a earlier release (QScxmlCompiler, introduced in Qt 5.7). Evenso, apparently those classes cover another feature which is only orthogonaly related with generating source code from SCXML documents. Meanwhile, the Qt Creator's manual entry on Editing State Charts does not mention anywhere which Qt version is required to use this feature. This may cause some confusion as potential users may be led to believe that this feature just works, although it doesn't.
  • CurrentBuild:Type

    Solved
    3
    0 Votes
    3 Posts
    776 Views
    canellasC
    @sierdzio Thanks!
  • Do .pri subprojects have a name?

    Moved Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    sierdzioS
    Since you mention functionality change: there is, of course, a way to use .pri cleverly. Consider this code: CONFIG += feature1 # ... feature1 { include(mySuperFeature.pri) } else { include(myOtherSuperFeature.pri) } In this simple way you can include different headers, sources, rules etc. based on some config values. However, even here, the pri file is only a simple include. You would get exactly the same results if you copy-pasted the contents of mySuperFeature.pri and myOtherSuperFeature.pri directly into the code above.
  • Creator: Enable Fakevim virtualedit=all

    Unsolved
    1
    0 Votes
    1 Posts
    299 Views
    No one has replied
  • CMake - Dynamic Analysis with Clang - Suppressing Reports in External Libraries.

    Unsolved
    1
    0 Votes
    1 Posts
    354 Views
    No one has replied
  • Creator: customizing default .pro-file

    Unsolved
    3
    0 Votes
    3 Posts
    915 Views
    SGaistS
    Hi and welcome to devnet, You might find this thread of help.
  • Creator: Completion no longer adds closing semicolon

    Unsolved
    29
    1 Votes
    29 Posts
    8k Views
    mrjjM
    @SGaist haha well after the mega rant towards c++ , he might have changed his mind later.
  • PRF Architecture issue in Windows

    Unsolved
    1
    0 Votes
    1 Posts
    323 Views
    No one has replied
  • How to remove a Warning ?

    Solved
    8
    0 Votes
    8 Posts
    5k Views
    RebelCoderRUR
    @Chris-Kawa Wow! that is exactly what I need. Just one more problem left.... field is not editable for some odd reason. [image: Spectacle_d_T4846.png] EDIT. Sorry, my fault. I just had to copy pre-existing settings and I could edit them then. It is sorted. thanks so much guys for your time and help!
  • Qt Creator: Code formatting and error checking

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    J
    @jsulm I checked 'Highlight Blocks' option but it wasn't what I want. I'm saying about this: [image: 053d8867-0008-4e4a-bab6-1d37dc5c42ab.png]
  • Creator: Where are "Refactor" settings?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    A
    I was looking for refactoring-specific settings, such as where newly created methods are positioned. But it looks like there are no such settings.
  • Clang static analyzer: how to exclude errors from boost

    Unsolved
    1
    0 Votes
    1 Posts
    572 Views
    No one has replied
  • Qt creator 4.3.1 is not showing any Qt versions under Auto-detected

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    JKSHJ
    @Mylavarapu.Manikanta said in Qt creator 4.3.1 is not showing any Qt versions under Auto-detected: -->But when I compiling a sample application "Can not find -lGL" error is showing. -->It seems like compiler cannot find the required library. -->My host pc configuration is: Redhat Linux 7.2,64-bit Please tell me the solution See https://forum.qt.io/topic/87093/mingw-w64-download
  • Is Qt Designer not equal to Qt Creator/Forms designer?

    Solved qt designer custom plugins qt creator
    10
    0 Votes
    10 Posts
    5k Views
    G
    Well, I found the problem. The menu command for Designer has this syntax: /usr/bin/qtchooser -run-tool=assistant -qt=qt5 I replace it with the path where is located designer: /home/glafauci/Programmi/Qt/5.10.0/gcc_64/bin/designer Now it work fine. Thanks to all.
  • Clang Code Model fails to find header files

    Unsolved
    3
    0 Votes
    3 Posts
    4k Views
    aha_1980A
    The bugreports are now: QTCREATORBUG-19667 for the headers QTCREATORBUG-19668 for the language specification
  • 0 Votes
    9 Posts
    3k Views
    JonBJ
    @Nianoniaa I doubt the files' content is getting zapped by a "legitimate" write to the file, more that something nasty is causing the underlying disk area to get corrupted. In itself I can't see that Qt would be the cause. However you probably do a lot more reading/writing of files etc. when you compiling or clanging than in other situations, so the problem may be more likely to show up then.
  • Qt creator has issues while building android for x86 using Cmake

    Unsolved android cmake gcc android studio
    3
    0 Votes
    3 Posts
    3k Views
    A
    Hello, Sorry for the novice mistake! I was trying to use different compilers in the NDK but i end up with the same error. The code i uploaded before was from one of my trials. I did change my configuration to x86 but i still get the same error. Since this is my 1st time for android, I may have missed something. The error stays the same. The 1st few line of my cmake error log states: Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++ Build flags: Id flags: The output was: 1 /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtend_android.o: No such file or directory /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lstdc++ /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lm /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lc /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -ldl collect2: error: ld returned 1 exit status and the cmake output states -- The CXX compiler identification is GNU 4.9.0 -- Check for working CXX compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -- Check for working CXX compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c05c5/fast" /usr/bin/make -f CMakeFiles/cmTC_c05c5.dir/build.make CMakeFiles/cmTC_c05c5.dir/build make[1]: Entering directory '/home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -o CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o -c /home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_c05c5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c05c5.dir/link.txt --verbose=1 /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o -o cmTC_c05c5 -rdynamic /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
  • Creator: How to auto-select correct Qt source paths for debugging?

    Unsolved
    1
    0 Votes
    1 Posts
    338 Views
    No one has replied