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
  • How to build 64 bit Installer on windows using QTIFW

    Unsolved qtifw 64bit
    1
    0 Votes
    1 Posts
    272 Views
    No one has replied
  • Cannot add compiler to Qt Creator 4.14.2 on MacOS 11.2.3

    Unsolved
    6
    0 Votes
    6 Posts
    528 Views
    SGaistS
    Check 4.15 before opening an issue.
  • QtCreator cmake release build seems to be using debug libraries

    Solved
    2
    0 Votes
    2 Posts
    511 Views
    C
    Well I made two changes and don't know which one fixed it. But in case someone else has this problem, this is what I did. First, I downloaded and started using QtCreator 4.15.0-beta 2 since it has lots of changes related to cmake. Second, I added a call to qt_finalize_executable() it to my CmakeLists.tx(). So now, all the builds work
  • Can not copy analyzer's line annotations

    Moved Unsolved
    1
    0 Votes
    1 Posts
    179 Views
    No one has replied
  • i cannot add a layout to my widget

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    S
    That part is a little bit confusing. Your QTabWidget will have a currently visible tab. To set the layout of the currently visible tab, you set the layout on tabWidget_2. Switch to the other tabs to set their layouts by also applying the layout to tabWidget_2 again.
  • Qt Creator: Don't switch to "Design" mode automatically.

    Unsolved
    9
    0 Votes
    9 Posts
    8k Views
    P
    I've got some workaround. Just go to Help->About plugins and switch off QmlDesigner at Qt Quick section
  • Problem with F4 ( switch between .h and .cpp )

    Unsolved
    4
    0 Votes
    4 Posts
    471 Views
    sierdzioS
    Perhaps it switched the code model plugin, you can check it in preferences. But both code models should handle F4 without problems, so I don't think it's the root cause of the problem.
  • How do I disable error highlighting when editing GLSL files?

    Moved Unsolved
    2
    0 Votes
    2 Posts
    410 Views
    J.HilkJ
    hi @mrjbom from the documentation: To suppress the message for a particular file pattern, select Tools > Options > Text Editor > Generic Highlighter and add the pattern to the Ignored file patterns field. https://doc.qt.io/qtcreator/creator-highlighting.html#generic-highlighting that should do the trick, I think
  • How to see Valgrind analyzer command line in QTCreator

    Unsolved valgrind qtcreator 4.0.0 command line
    4
    0 Votes
    4 Posts
    855 Views
    JonBJ
    @galb1994 I believe everything of mine in Creator is on whatever the defaults are. I do assume you are Linux and not Win/Mac? I will be on whatever Creator comes with Ubuntu 20.04 apt-get (unless I fetch it myself, I forget).
  • At run: Failing opening of work directory

    Unsolved
    3
    0 Votes
    3 Posts
    354 Views
    N
    The Folder doesn't exist, all builds should go to ..../cpp/other/qt_test_2/build/. Also, I want to use cmake instead of qmake. It's because I need this for a project collaborating with others, which provides a CMakeLists.txt file.
  • Configure Qt Creator kits through scripts

    Unsolved
    4
    0 Votes
    4 Posts
    410 Views
    A
    Great, thx for the answer!
  • File has been removed ???

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    JKSHJ
    @AnneRanch said in File has been removed ???: I am not deleting any file. Look closely at "Compile Output" in your last screenshot: You ran "/usr/bin/make" clean -j4, which deleted all of your generated moc files via rm -f.
  • Cmake add application icon for windows

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    C
    Thanks for your advice. I have got it working. For others who may have this problem: I created a file called icon.rc with the following two lines #include <windows.h> IDI_ICON1 ICON "dac1.ico" I added icon.rc to the call to qt_add_executable(). Note: It does not work if icon.rc is added to the qt_add_resources() call which is used when adding a Qt .qrc file)
  • Hide error triangles in Qt Creator

    Moved Unsolved
    5
    0 Votes
    5 Posts
    577 Views
    C
    Triangles are still there.
  • signals as functions (compiler warning)

    Moved Solved
    3
    0 Votes
    3 Posts
    3k Views
    ODБOïO
    hi @Circuits said in signals as functions (compiler warning): "Emit keyword being used with non-signal" In addition to what Christian said, that warning will also be thrown if you have a signal and a method/slot with the same name public slots: void test(){ return; } signals: void test(int &i); [...] { emit test(); // Emit keyword being used with non-signal [clazy-incorrect-emit] }
  • 0 Votes
    1 Posts
    466 Views
    No one has replied
  • How to define initial build options with CMakeLists.txt

    Unsolved creator cmake
    6
    0 Votes
    6 Posts
    1k Views
    Christian EhrlicherC
    @cube45 said in How to define initial build options with CMakeLists.txt: How do you publish your app then? 'make install' is your friend.
  • Qt Creator's wizard-created template project has issues right out of the box

    Unsolved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • QtCreator 4.14.2 constantly deadlocks on Windows10

    Unsolved
    4
    0 Votes
    4 Posts
    519 Views
    jsulmJ
    @AzBako It's the event-viewer
  • From git to project ?(sortof repost)

    Unsolved
    5
    0 Votes
    5 Posts
    474 Views
    SGaistS
    As I already wrote, it you are after the Qt 5 examples, switch the git branch. Then go to the sub folder of the examples and open the project file that is there.