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 "subdirs" project

    Unsolved
    14
    0 Votes
    14 Posts
    11k Views
    SGaistS
    @Raad A documentation update is in the works that will explain that.
  • qmake function change global variable

    Solved
    2
    0 Votes
    2 Posts
    270 Views
    semlanikS
    Ok, solved. defineReplace(somefunc) { SOURCES += my_new_source.cpp export(SOURCES) return() }
  • 0 Votes
    3 Posts
    356 Views
    JonBJ
    @Himanshu-charde In fact in the case you show I think your process.start("literal string") will work OK, but only because it doesn't happen to have any special characters which need quoting. But @jsulm suggestion to use the separated string list arguments is more robust if that changes. The vital thing is that as @jsulm says you are not attempting to read any output from the process back into your Qt app. You'll want https://doc.qt.io/qt-5/qprocess.html#readAllStandardOutput and possibly https://doc.qt.io/qt-5/qprocess.html#readyReadStandardOutput. And while you are at it, always do the same for https://doc.qt.io/qt-5/qprocess.html#readAllStandardError. And the https://doc.qt.io/qt-5/qprocess.html#errorOccurred signal. People don't bother and then wonder what's happening when an error is reported....
  • QtCreator 4.11.0 crash on startup loading ClangPchManager

    Unsolved
    2
    1 Votes
    2 Posts
    404 Views
    aha_1980A
    @fcusolito I don't see ClangPchManager in my plugin list. Maybe that was an experimental plugin you enabled and that no longer exists? Regards
  • Using Qt classes in VS project

    Unsolved
    5
    0 Votes
    5 Posts
    566 Views
    KroMignonK
    @Milosz said in Using Qt classes in VS project: n other words I have to create a new project - I cannot modify the current one. did i understand correctly? Perhaps you can try to use Qt Visual Studio Tools. It may include an import feature, but I don't know. I never use it. Yes, you need to create a new project, because using Qt requires to made deep changes in your code.
  • 1 Votes
    3 Posts
    2k Views
    G
    I have the same problem on MacOS but this seems not coming from CMake but from the last version of QT Creator 4.11.x I installed an instance of Qt Creator to 4.10.x and get back project structure as folders structure.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • How to get same compiler flags with QMake and CMake?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    Christian EhrlicherC
    Since these are two different build systems there are for sure different flags. If you need a specific flag you have to make sure it's there for both build systems. Both can create a running Qt application.
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    20 Views
  • 0 Votes
    27 Posts
    4k Views
    Christian EhrlicherC
    Closing this topic as it's off topic for a too long time already.
  • 0 Votes
    4 Posts
    4k Views
    M
    the build error is following: [image: 6e038656-1bd8-4311-80de-f072ef391ae1.png] I guess it's not supposed to be built in this way. Looks like I should build it as a new Qt module like described "here":http://qt-project.org/wiki/Creating-a-new-module-or-tool-for-Qt#55af8d3b581bc7a96ac2a08eb19da92c. Please correct me if I'm wrong.
  • recreate stackedwidget from camera example

    Unsolved
    2
    0 Votes
    2 Posts
    253 Views
    M
    OK I figured it out myself. First one must place some widget in the pages and then right-click on the stackedWidget object name and from the menu select Layout and the select the desired layout.
  • QTCreator using wrong defines for syntax highlighting

    qtcreator
    2
    0 Votes
    2 Posts
    829 Views
    Z
    This topic is quite old, but for any future time-travelers coming by this way, I found a workaround, that works at least in my case. My projects is structured as a SUBDIRS project, with all the subprojects listed in the main .pro file. In each subproject file, I "include(PARENT_PROJECT.pro)", on the very first line. Moving this include statement to the bottom of the subproject's .pro file fixed the QtCreator syntax highlighting issue for me. Hopefully this helps someone, somewhere out there.
  • Unable to setup QT VS Tool - VS2019

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    W
    Problem is solved, using the old rev_09 of VS Tool, it is working...
  • Installer to replace an earlier version

    Unsolved
    1
    0 Votes
    1 Posts
    180 Views
    No one has replied
  • It's possible to upgrade QT's version?

    Solved
    7
    0 Votes
    7 Posts
    679 Views
    LematL
    @LeLev i understand
  • 8 Votes
    2 Posts
    854 Views
    V
    Related to my post... Yesterday Cristian Adam has published another interesting article on Qt's blog about Building Qt Creator plugins with GitHub Actions.
  • 0 Votes
    5 Posts
    2k Views
    MikhailGM
    @Christian-Ehrlicher said in Trying to build qt creator from source with MSVC: Cannot open include file: 'stddef.h': No such file or directory: and do you really opened a visual studio command prompt Thank you that was it! Wrong command prompt.
  • Multiple version of Qt Creator

    Solved
    3
    0 Votes
    3 Posts
    346 Views
    jsulmJ
    @MartinD Use -settingspath parameter to specify different directories for settings.
  • C++98 warnings after update to Qt 5.14 (MSVS2019)

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    aha_1980A
    Hi @Szymon-M-Sabat, that was already mentioned in the blog post comments, there is also a workaround. You might want to look that up. Regards