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
  • Strange error when I open a new project

    Moved Unsolved creator
    1
    0 Votes
    1 Posts
    891 Views
    No one has replied
  • Debugger can't find source files

    Unsolved qt creator debug
    1
    0 Votes
    1 Posts
    954 Views
    No one has replied
  • Adding gdb command via Creator seems to have no effect

    Unsolved
    2
    1 Votes
    2 Posts
    675 Views
    SGaistS
    Ping @hunger :)
  • How to create a dll starting from a CMake project.

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    K
    @Foraz Last time I had a similar issue I started simply with a "hello world" dll and checkout what to change in my library source and qmake to get it to work. That was the most straight forward things to do. Instead of using qmake for your projects you shall use CMake as the basis for your projects based Qt creator templates. [edit] There are also some guidelines for dll creation with qt
  • Using Bare Metal kit. running gdb server when pressing F5 to start debug.

    Solved
    2
    0 Votes
    2 Posts
    587 Views
    mrjjM
    Hi Found place that works [image: yx3jLg.png]
  • QMake seemingly Unable to add MySQL connector in windows port.

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    P
    @jsulm yes! That's precisely my point, it means it can't locate the non-d version either, which does exist. My line of thinking was that it confirms that it is unable to read a file that we know exists. The question then is this: Is the code used by the dialog unable to properly navigate windows file systems? To reiterate: I did not write that code, it was generated by Qt itself. I selected the mysqlcppconn-static.lib file in the dialog, still qmake, or the compiler(I don't know which it is) is unable to find it.
  • QMAKE_EXTRA_COMPILERS and MOC

    Unsolved qmakeextracom make
    2
    0 Votes
    2 Posts
    2k Views
    E
    I had the same problem, solved it by making a new compiler that uses the generated header file as input and runs moc on it to generate the missing source file. From my .pro: dbc2cpp_canbus_h.name = Generating canbus.h from DBC file. dbc2cpp_canbus_h.CONFIG += combine dbc2cpp_canbus_h.input = "DBC_A_C" dbc2cpp_canbus_h.output = canbus.h dbc2cpp_canbus_h.commands = bash -c 'dbc2cpp --target CANBUS_H CLUSTER <($${DBC_A_GIT}) <($${DBC_C_GIT})' dbc2cpp_canbus_h.variable_out = HEADERS QMAKE_EXTRA_COMPILERS += dbc2cpp_canbus_h CANBUS_H = canbus.h new_moc.commands = moc $(DEFINES) $(INCPATH) canbus.h -o ${QMAKE_FILE_OUT} new_moc.input = "CANBUS_H" new_moc.output = moc_canbus.cpp new_moc.variable_out = SOURCES QMAKE_EXTRA_COMPILERS += new_moc
  • VS Plugin: How to set default qrc compression level

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    A
    @mrjj said in VS Plugin: How to set default qrc compression level: @Asperamanca I assume we talk about the new Addin ? https://code.qt.io/cgit/qt-labs/vstools.git The latest official version: 2.1.1, yes. I've now put it to the support. I just like to ask in the forums first, in case the reason / solution is obvious (and I just don't see it).
  • Blender Qt3D addon export error

    Solved qt3d blender
    5
    0 Votes
    5 Posts
    2k Views
    small_birdS
    Hello, how to solve this problem? Could you please tell me the answer, thanks in advance!
  • qmake with a custom pre build target does not compile

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    S
    Thanks for the hints. I'll think about them.
  • Using .pro-files with non-Qt applications in QtCreator

    Solved qmake qt creator non-qt
    5
    0 Votes
    5 Posts
    2k Views
    G
    @SGaist yes, you were right! Qmake is saving absolute path internally, I think. So I moved all necessary files to required directory and everything is working, thank you! I'll post a screenshot with minimum necessary files and directories that needed to successful qmake's work without Qt. [image: 25961c0e-83c4-4dbb-9388-4b42fd01e589.png] It requires an empty include directory! If you delete it QtCreator will not show your non-Qt Kit in the startup list of Kits for a new project!
  • CMake + MSBuild project shows repeated entries when opened in Qt Creator

    Unsolved
    3
    0 Votes
    3 Posts
    699 Views
    R
    Qt Creator 4.4.0, CMake 3.9.3, Qt 5.6.3
  • Simple OpenCL under QT Creator

    Unsolved
    7
    0 Votes
    7 Posts
    4k Views
    M
    Check out this link for using OpenCL with CMake.
  • [SOLVED] QT Creator doesn't start the debugger

    4
    0 Votes
    4 Posts
    5k Views
    V
    @amigo421 said in [SOLVED] QT Creator doesn't start the debugger: I would raise it as a bug - the message should be more precise, e.g. "working directory is invalid." The current message is very confusing so I had to google the issue to figure out that working dir is wrong.
  • Saving scratchpad to qt project file to commit.

    Unsolved
    4
    0 Votes
    4 Posts
    891 Views
    mrjjM
    @mustafayilmaz Under AppData i guess but never found the file. maybe in the sqlite db. You can also just look in souce and see if you can find it :)
  • Using syncProj to compile QT project on Visual Studio...

    Unsolved
    3
    0 Votes
    3 Posts
    854 Views
    T
    @jsulm I have used cmake, premake5 and syncProj. From them worst syntax (difficult to configure, use and diagnose errors) is cmake , after that goes premake5 - it allow full Lua programming language dialect, including functions, and syncProj is better from error handling perspective and usability and debugging in overall, but it's lacking of portability at the moment (Did not need one currently). But I'm looking forwards to any attempts to help me to improve syncProj into right direction - I think code is in much better shape than others. I'm waiting when C++ modules comes up, and I will be able to compile C++ code on fly ("C++ script"), after that syncProj can be recoded in C++ and forget about odd programming languages like C# and Lua. :-) (and yes cmake is not a programming language, it's sibling of batch files or shell scripts)
  • QtCreator 4.4 && cmake mac project don run by CTRL+R

    Solved cmake
    3
    0 Votes
    3 Posts
    1k Views
    P
    Hi... i see vtable error link library error... i solved to create a normal file.pro... other way i must create a extra cmake file compatible to QtCreator 4.4... tanks...
  • Qt serial communication using UART

    Solved
    21
    0 Votes
    21 Posts
    14k Views
    aha_1980A
    @mrjj said in Qt serial communication using UART: @aha_1980 Oh yes. sorry. i did miss. Clicked from locked thread. Should have read it all :) No problem :) (And no need to delete your post)
  • qmake: automatic addition of source files

    Solved
    7
    0 Votes
    7 Posts
    4k Views
    mrjjM
    @thompsonx Yes i imagine its possible to have a pri file to setup options and the actual files comes from other autogenerated .pri file.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    16 Views
    No one has replied