跳到內容

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 主題 35.5k 貼文
  • 0 評價
    3 貼文
    2k 瀏覽
    L
    Thank you! No, partly because the QtSettings are a bit scattered and I wasn't shure which ones would be correct. Removing and reinstalling QtCreator from Ubuntu repos didn't work, but removing and installing it via the QtUnified online installer did. Was hoping to avoid that because I didn't want to log in with an account but gave up eventually. I may try to switch back with cleaned settings at one point, but for now I'm just glad it works again.
  • Issue with Qt Visual Studio Tools in MSVC 2019

    Solved visual sudio to visual studio addon
    2
    0 評價
    2 貼文
    1k 瀏覽
    M
    Finally found a solution, for those of you who have the same issue, I removed Qt and Visual Studio, then installed Qt again and Visual Studio, and now it is showing properly in the Extensions menu
  • Problem processing translations in VS2017

    已移動 Unsolved
    3
    0 評價
    3 貼文
    669 瀏覽
    PerdrixP
    This problem seems to stem from this code: <!--// Parse QRC --> <PropertyGroup> <QtRccExeQuoted Condition="'$(QtVsProjectSettings)' == 'true'">&quot;$(QtToolsPath)\rcc.exe&quot;</QtRccExeQuoted> <QtRccExeQuoted Condition="'$(QtVsProjectSettings)' != 'true'">&quot;%(QtRcc.QTDIR)\bin\rcc.exe&quot;</QtRccExeQuoted> <QtRccQuoted>&quot;%(QtRcc.Identity)&quot;</QtRccQuoted> <RccListQuoted>&quot;$(IntDir)rcc_list.txt&quot;</RccListQuoted> </PropertyGroup> <Exec Condition="'@(QtRcc)' != ''" Command="$(QtRccExeQuoted) --list $(QtRccQuoted) > $(RccListQuoted) 2> nul"/> <ReadLinesFromFile Condition="'@(QtRcc)' != '' AND Exists('$(IntDir)rcc_list.txt')" File="$(IntDir)rcc_list.txt"> <Output TaskParameter="Lines" ItemName="res_file"/> </ReadLinesFromFile> I hope that gives one of you the clue you need - I'll keep digging.... Looking at the VS defined macros I see: [image: f72152c6-68fb-457b-8544-861ee547a1ea.png] If someone can tell me how to manually set the macros that are currently set to ERROR: Qt Install dir not found... Well if only someone had said the setting this EV would solve it... [image: c5ebb5bb-183f-42b9-a5e1-f27e836caa31.png] David
  • Problem running windeployqt

    Unsolved
    2
    0 評價
    2 貼文
    525 瀏覽
    PerdrixP
    I think I have a work around ... I changed the command to read: call C:\Qt\5.12.8\msvc2017_64\bin\qtenv2.bat; C:\Qt\5.12.8\msvc2017_64\bin\windeployqt --pdb $(TargetPath) which seems to have done the job. I still think this is a bug though :) D.
  • QtCreator Designer and QtGraphicalEffects 1.xx issue

    Unsolved
    2
    0 評價
    2 貼文
    458 瀏覽
    D
    A little update: If I comment the line "plugin qtgraphicaleffectsplugin" in the qmldir, I get the effect preview in the form editor of Creator. But of course at runtime I get the error "module "QtGraphicalEffects" version 1.12 is not installed" because the dll isn't loaded. Thank you.
  • Design studio and Creator for Device creation (rPi/imx6 etc...) c++ backend issue

    Solved
    3
    0 評價
    3 貼文
    367 瀏覽
    D
    Hello Thomas, Thank you for your reply. I'll try this approach. Best Regards.
  • Crypt C function under Qt's MinGW not found

    Unsolved mingw
    8
    0 評價
    8 貼文
    2k 瀏覽
    JonBJ
    @Mixlu There are two possible issues. crypt.h is only a #include header file, needed to compile. Separately is the library containing the crypt code, which you will need at link-time (else "unresolved reference error") and/or run-time. Depending on your platform, we might be talking about libcrypt.a, libcrypt.so and/or libcrypt.dll. (For MinGW I also see mentions of libgcrypt, I don't know if that is relevant to you.) You will need one of these too, unless the crypt code is already actually in some other supplied runtime library. If you are Windows (you are, aren't you?) you might like to look at e.g. https://stackoverflow.com/questions/48410282/mingw32-compiler-giving-error-with-lcrypt
  • Project ERROR: Cannot run compiler 'g++' (Windows)

    Unsolved compiler g++ windows 10
    5
    0 評價
    5 貼文
    1k 瀏覽
    M
    I try with only one and after I added the 3 others to test. But indeed I get back to only one (Tools\mingw\bin) which contains g++.exe yes.
  • Qt 5.14 and NetBeans code completion

    Unsolved
    1
    1 評價
    1 貼文
    177 瀏覽
    尚無回覆
  • Install Doxygen for Qt on Mac OS X

    Unsolved
    5
    0 評價
    5 貼文
    712 瀏覽
    B
    Hello again, I already have Doxygen working with Qt, however thanks for the tip, I didn't know Qdoc. Thank you very much for your support.
  • Custom python debug helpers broken?

    Solved
    2
    0 評價
    2 貼文
    338 瀏覽
    G
    Hi, found solution myself: it seems the custom .py file needs to include import dumper instead of from dumper import * as it is also shown in the new personaltypes.py example. This makes my debug helpers work for all versions. Best regards, Gino
  • CMake again taking very long to run (only within QtCreator)

    Unsolved
    1
    0 評價
    1 貼文
    276 瀏覽
    尚無回覆
  • C Makefile project: how to keep .creator files in a different location?

    Unsolved
    2
    0 評價
    2 貼文
    208 瀏覽
    SGaistS
    Hi, What is the issue with adding these files to .gitignore ? That's exactly the purpose of that file.
  • How to import/convert a Qt-qmake project into Qt Creator?

    Unsolved
    6
    0 評價
    6 貼文
    849 瀏覽
    SGaistS
    Well, as silly as it may sound: select the Qt 5 installation you have from brew. If you don't have it, go to the Qt versions tab and set it up there. Then come back to the kit page and chose it there.
  • Qt Creator autocomplete not updating for new UI widgets until (re)compile

    Unsolved qtcreator autocomplete widgets slots
    6
    1 評價
    6 貼文
    4k 瀏覽
    J
    I was having the same problem, but for me has worked to disable the Clang code model and restarting Qt.
  • QtCreator: Alt + E shortcut doesn't work

    Solved
    5
    0 評價
    5 貼文
    594 瀏覽
    T
    I solved it by creating qt creator plugin that contains qt_set_sequence_auto_mnemonic(false).
  • Unordered output in application output panel of Qt Creator

    Unsolved
    3
    0 評價
    3 貼文
    450 瀏覽
    A
    @aha_1980 Thanks for your hint. cout still doesn't work correctly, even when not mixed with qDebug(), see picture attached [image: 93752b46-c28d-45b0-948d-ba63e3dbda50.png]
  • Could Qt resource compiler (RCC) generate dependencies?

    14
    0 評價
    14 貼文
    7k 瀏覽
    P
    @Adam-Badura Though this thread is very old, I actually ran across it when trying to define a custom qmake rcc compiler for pyrcc5 which compiles resources to python byte code in PyQt5. The problem is that I wanted to use the target.depend_command to list out the resource files needed for the resource compiler. This is crucial for editing qml files and having the change picked up in a call to make. rcc -list works perfectly for this. For the record, here is my custom compiler: pyrcc5.input = RESOURCES pyrcc5.output = qrc_${QMAKE_FILE_BASE}.py pyrcc5.dependency_type = TYPE_RCC pyrcc5.depend_command = rcc -list ${QMAKE_FILE_NAME} pyrcc5.CONFIG = no_link target_predeps dep_lines add_inputs_as_makefile_deps pyrcc5.commands = pyrcc5 ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT} QMAKE_EXTRA_COMPILERS += pyrcc5 (And here is my custom pyuic5 compiler:) pyuic5.input = FORMS pyuic5.output = ${QMAKE_FILE_BASE}_form.py pyuic5.dependency_type = TYPE_UI pyuic5.CONFIG = no_link target_predeps dep_lines pyuic5.commands = pyuic5 ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT} pyuic5.variable_out = GENERATED_FILES pyuic5.name = PyUIC5 ${QMAKE_FILE_IN} QMAKE_EXTRA_COMPILERS += pyuic5
  • Maintenance tool - major problems

    Unsolved
    1
    0 評價
    1 貼文
    314 瀏覽
    尚無回覆
  • Creator not "seeing" 5.14.2

    Solved
    5
    0 評價
    5 貼文
    593 瀏覽
    mzimmersM
    Due to other problems, I wiped out my Qt installation and re-installed. It now sees 5.14.2. I do believe I managed to get something screwed up in my Qt directory. Anyway, this problem went away. Thanks for looking...