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
  • Custom widget with custom widgets in Qt Creator (Designer)

    Unsolved
    6
    0 Votes
    6 Posts
    880 Views
    T
    @jsulm I have not thought in this way :) Sounds good, so I will give a try, thank you. Separate linking is working well.
  • Restarting Qt Creator all symbol information seems lost

    Unsolved
    4
    0 Votes
    4 Posts
    464 Views
    jsulmJ
    @joggerwolf said in Restarting Qt Creator all symbol information seems lost: Could this be related to using ccache? Could be . You can try to disable ccache and see whether it makes a difference.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • From .pro file how to access a variable from another file?

    Unsolved qmake pro file
    3
    0 Votes
    3 Posts
    1k Views
    N
    we would like to install different builds on the same machine and the place were would do that distinction would be on the .pro file, to then generate different values for the "version" value of "info.plist" file. We already have a portion of code that we can probably use to do something similar: codegen.commands = python "\"$${PATH}/Dir1/test.py\"" !isEmpty(VARNAME) { message($$VARNAME) codegen.commands += VarName=$$CONFNAME } I think we are getting there
  • Add Unity c unit test framework to QtCreator

    Unsolved
    3
    0 Votes
    3 Posts
    562 Views
    aha_1980A
    Just as follow-up, these are the changes I made to integrate Unity in Creator: For the colored PASS/FAIL output, #define UNITY_OUTPUT_COLOR (e.g. in the .pro file), and change the color definitions to better fit the Application Output: static const char UnityStrOk[] = "\033[32mOK\033[00m"; static const char UnityStrPass[] = "\033[32mPASS\033[00m"; static const char UnityStrFail[] = "\033[31mFAIL\033[00m"; static const char UnityStrIgnore[] = "\033[33mIGNORE\033[00m"; Add file:// before a test failure, that makes the file clickable in Application Output and brings you to the source code: static void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line) { UNITY_PRINT_EOL(); UnityPrint("file://"); UnityPrint(file); UNITY_OUTPUT_CHAR(':'); UnityPrintNumber((UNITY_INT)line); UNITY_OUTPUT_CHAR(':'); UnityPrint(Unity.CurrentTestName); UNITY_OUTPUT_CHAR(':'); } Regards
  • The best way to combine MinGW and MYSQL?

    Solved
    3
    1 Votes
    3 Posts
    2k Views
    C
    hi koahning QT5.12.4 was released that version with SSL1.1.1. maybe build static lib of mysql is easy now.
  • How to use KDE Frameworks with Qt Creator

    Solved kde qt5 qtcreator module
    8
    1 Votes
    8 Posts
    7k Views
    D
    @mpyne said in How to use KDE Frameworks with Qt Creator: Hi @daljit97, as you guessed, the difficulty is in helping Qt to find the appropriate metadata so that qmake knows how to handle "KSyntaxHighlighting" when it finds it in your QMake project file. Looking at some of the Qt docs on a related topic, I found this page on advanced QMake usage. The part you care about is the third option to add features to qmake: using the QMAKEPATH environment variable. By exporting this variable in your shell to the KF5 install directory, qmake should be able to find the various KF5 modules. For example, my KF5 install is at ~/kde-5, so I did something like: export QMAKEPATH=$HOME/kde-5 qmake make on a shell project # program.pro TEMPLATE = app TARGET = program INCLUDEPATH += . QT += widgets KSyntaxHighlighting SOURCES += main.cpp // main.cpp #include <QMainWindow> #include <QApplication> #include <QLabel> #include <Definition> int main(int argc, char **argv) { QApplication app(argc, argv); QMainWindow *win = new QMainWindow; KSyntaxHighlighting::Definition def; win->setCentralWidget( new QLabel(QStringLiteral("Hi!"), win) ); win->show(); return app.exec(); } It is also possible to build Qt applications with CMake, and that is more traditional for significant KF5 users. But as long as this works for you it looks like it won't be too hard to do what you're trying to do while continuing to use qmake. Ok so that was very helpful. On my machine that KSyntaxHighlighting had a .pri file in /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules. Following your suggestion I added a QMAKEPATH Environment variable in Qt Creator using the GUI tool that Qt Creator provides and now everything works! [image: 1e4a194d-4304-480d-b209-bb141cd30770.png]
  • Qt Creator plugin: undefined reference to snippets

    Unsolved
    3
    0 Votes
    3 Posts
    416 Views
    M
    In my plugin.pro i added it in dependencies section: QTC_PLUGIN_NAME = KSClassGenerator QTC_LIB_DEPENDS += \ # nothing here at this time QTC_PLUGIN_DEPENDS += \ coreplugin \ projectexplorer \ texteditor QTC_PLUGIN_RECOMMENDS += \ # optional plugin dependencies. nothing here at this time =====================================================0 I want to do something like this and further more: TextEditor::Internal::SnippetsCollection *collection = TextEditor::Internal::SnippetsCollection::instance(); const int size = collection->totalActiveSnippets("C++");
  • Can I get code model tips using a GCC toolchain?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    JKSHJ
    @nathanb said in Can I get code model tips using a GCC toolchain?: Is there a way to have QT Creator index that file without explicitly including it in the project? I don't know, sorry. I'll let an experienced person reply. If you don't get anything from this forum, try the Qt Creator mailing list: https://lists.qt-project.org/listinfo/qt-creator (You must subscribe before posting) P.S. It's "Qt", not "QT". The latter stands for Apple QuickTime.
  • qt-apps-qmllive

    Unsolved
    2
    0 Votes
    2 Posts
    452 Views
    ODБOïO
    i re-ilstall qmllive but still cant see the live Preview window.
  • Errors when using qt-vs addins

    Unsolved
    2
    0 Votes
    2 Posts
    407 Views
    JKSHJ
    @xujingwei said in Errors when using qt-vs addins: visual studio 2010 This is too old. From Qt 5.7 onwards, you need a compiler that supports C++11. I suggest you install Visual Studio 2019: https://visualstudio.microsoft.com/downloads/ Qt VS Tools for VS 2019: https://marketplace.visualstudio.com/items?itemName=TheQtCompany.QtVisualStudioTools2019 Qt 5.13.0 for MSVC 2017 (this is compatible with Visual Studio 2019)
  • Qt Designer on MacOS Mojave 10.14.5

    Moved Solved
    3
    0 Votes
    3 Posts
    644 Views
    immmommI
    @Christian-Ehrlicher found - thank you!
  • Qt 5.13 is not ready for Android (was QtCreator doesn't find compilers)

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    G
    @jsulm said in Qt 5.13 is not ready for Android (was QtCreator doesn't find compilers): I checked r20 NDK and there are Clang ARM compilers. QtCreator does not add it automatically. Just try tune QtCreator for development of multiplatform apps and it will become clear: Qt 5.12/5.13 IS NOT READY FOR DEVELOPMENT.
  • qt-apps-qmllive

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    ODБOïO
    @jsulm thank you so much
  • Qt Creator 4.9.2 is not working with CentOS 7.4

    Unsolved
    3
    0 Votes
    3 Posts
    523 Views
    R
    I can not decide whether It's a bug of QT. Maybe it's a bug of dbus's new version or something goes wrong in CentOS7.4.
  • QT Creator and WebAssembly

    Unsolved
    6
    2 Votes
    6 Posts
    2k Views
    SGaistS
    Where did you do downloaded it from ? What compiler are you trying to use ?
  • Qt Creator4.9.2 How to disable "Parallel job"

    Solved
    5
    1 Votes
    5 Posts
    767 Views
    J.HilkJ
    @RobotR Don't forget to set the topic too solved. Now that your issue is solved 😉
  • Debugger encountered an exception ?

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    aha_1980A
    @davecotter Continuation on the Interest mailing list.
  • maintenance tool requiring valid repository for selective component removal QT IFW

    Solved
    1
    0 Votes
    1 Posts
    208 Views
    No one has replied
  • Qt Creator randomly crashing at Debugger::Internal::QmlInspectorAgent::onResult()

    Unsolved
    4
    0 Votes
    4 Posts
    519 Views
    aha_1980A
    @AaronC Reported as QTCREATORBUG-22654