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.8k Topics 36.2k Posts
Qt 6.11 is out! See what's new in the release blog
  • QT creator 11.0.3 issues with default app

    Unsolved
    4
    0 Votes
    4 Posts
    708 Views
    cristian-adamC
    It's mostly a tooling and operating system bug. See https://bugreports.qt.io/browse/QTBUG-117413 Qt Creator is creating a CMake project in such a way that will get result in long paths. CMake then gives this paths further to ninja / make and then to the compiler. GCC has this bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107974 and even though is an easy fix to add the manifest entry required by Windows ... nobody has fixed it yet. Visual C++ has the same issue, see https://developercommunity.visualstudio.com/t/compiler-cant-find-source-file-in-path/10221576 The only compiler that's fine is Clang. Ninja also requires a build from latest sources, since https://github.com/ninja-build/ninja/releases doesn't list yet version 1.12.0 which has the one line manifest entry that enables long paths. I usually say just switch to Linux or macOS, they are way more friendly to developers, and issues like this are non existent. Or ... just use c:/dev to have short paths 🙂
  • how to set default root for my build directory from Desktop to home/username

    Moved Unsolved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • How to get path to buffer (copy)

    Moved Unsolved
    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • probable noob issue: cannot get QT creator runnning

    Solved
    5
    0 Votes
    5 Posts
    822 Views
    V
    problem is solved with a command line in the console like git config --global http.sslVerify false reason was that QT creator intrinsically uses GIT when setting up a project and connects to a GIT server. The data from the GIT has self-certification and our company network does not allow this. With the command above we tell GIT that it shall not check the SSL certificate.
  • QtCreator 'Peripheral Description File' (SVD) not working

    Unsolved
    1
    0 Votes
    1 Posts
    360 Views
    No one has replied
  • Doesn't launch my code in a new terminal

    Moved Unsolved
    2
    0 Votes
    2 Posts
    347 Views
    cristian-adamC
    The output is displayed in the Terminal pane. In the Terminal settings you can configure not to have this functionality. See https://doc.qt.io/qtcreator/creator-reference-terminal-view.html#terminal-preferences and uncheck the Use internal terminal check box.
  • How to access "textEdit" using "topLevelWidget()"?

    Unsolved
    2
    0 Votes
    2 Posts
    456 Views
    JonBJ
    @AnneRanch QTextEdit *textEdit = mainWindow->centralWidget()->findChild<QTextEdit *>(); if (textEdit) textEdt->append("TEST TEXT"); else qDebug() << "Did not find any QTextEdit";
  • How to view document of current Qt version instead of newest?

    Unsolved
    2
    0 Votes
    2 Posts
    264 Views
    No one has replied
  • empty content in pyside6-assistant

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    @warwick1996 you should start by installing the latest version of PySide6. It is now 6.5.3.
  • macdeployqt codesign verification error

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    @Jonas-Kvinge Thanks for the feedback ! I am sorry, I lost track of this one.
  • IPlugin with Q_DECLARE_INTERFACE?

    Unsolved
    3
    0 Votes
    3 Posts
    750 Views
    H
    @jsulm IPlugin is the interface. class EXTENSIONSYSTEM_EXPORT IPlugin : public QObject { Q_OBJECT //... } class HelloWorldPlugin : public ExtensionSystem::IPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "HelloWorld.json") //... } why not class IPlugin { public: virtual ~IPlugin() {} //... }; Q_DECLARE_INTERFACE(FilterInterface, "org.qt-project.Qt.QtCreatorPlugin") class HelloWorldPlugin : public QObject, public ExtensionSystem::IPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "HelloWorld.json") Q_INTERFACES(IPlugin) //... } maybe IPlugin has a signal?
  • qtc.process_stub: Inferior error: QProcess::Crashed "Process crashed"

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    jsulmJ
    @v3v439bm0 said in qtc.process_stub: Inferior error: QProcess::Crashed "Process crashed": I'm linking some libs, SDL2, Glew, OpenGL Do you build these libs using msys2? I'm asking because you can't mix MSVC++ and GCC.
  • How to index Tab widget contents ?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    A
    I did try similar approach and it is sort-off working. Does that makes sense ? MWCCF->centralWidget()->topLevelWidget()->setWindowTitle("TEST windopw TITLE"); MWCCF->centralWidget()->topLevelWidget()->topLevelWidget()->setToolTip("TEST TAB TOOL TIP"); I have not figured out how to actually select desired Tab, so far only " top xyz..." is working. This approach is little cryptic ,but it would bypass the need for extra sub-funtion... ADDENDUM I think the above "topLevel" is OK for ONE level, it doe not makes much sense for multiple level... I like to modify / change my original post. Is there a way to scan thru the widgets / tabs to find a tab of specific title? I am still not sure how to find the correct widget - tab for example - pointer.
  • how to jump to start of line in Qt Creator

    Moved Solved
    4
    0 Votes
    4 Posts
    834 Views
    S
    Command+leftArrow should work as well.
  • Qt Creator displaying project structure wrong

    Moved Solved
    7
    0 Votes
    7 Posts
    1k Views
    R
    @Redman [image: 01aa50fe-f27e-4a4b-9727-8306e86317eb.png] After creating another folder with files inside QtCreator manages to show the project tree correctly.
  • Is there any documentation for the .pro file?

    Solved
    6
    1 Votes
    6 Posts
    2k Views
    R
    @KH-219Design Thank you for that. That's going to be useful.
  • how to hide this panel

    Moved Solved
    5
    0 Votes
    5 Posts
    800 Views
    jsulmJ
    @JacobNovitsky What QtCreator version is this?
  • Qt Creator (Edit) presentation

    Moved Solved
    2
    0 Votes
    2 Posts
    452 Views
    J
    @JacobNovitsky tick dark theme and it paints it black [image: 4cdd8357-b2f9-4016-80c8-01564dce6a37.png]
  • Qt4: the qmake executable could not be added in QtCreator

    Moved Solved
    2
    0 Votes
    2 Posts
    2k Views
    CP71C
    Qt : 4.8.7 qmake: 2.01a issue : impossible to add qmake in “Qt versions” cause : qmake -query returns only a property ( QT_INSTALL_PREFIX ) fix : call “qmake -set <property> <data>” for all missed properties Ok, finally I have found the reason because QtCreator doesn’t add qmake in “Qt Versions”. It was not easy, I have had to discover what QtCreator does when someone selects qmake, QtCreator runs “qmake -query” for selected qmake. So I have compared the output of two “qmake -query” (one good and one my compiled Qt 4) and I have seen: good qmake provides more proprieties about qt my compiled qmake provides only one property (QT_INSTALL_PREFIX) It is very strange for me, because If I require a specific missed property (e.g. “qmake -query QT_INSTALL_BINS”) qmake provides the property info, but it is not be provided if I run “qmake -query”. So, the solution that I have found it is run “qmake -set” for all missed properties ( e.g. “qmake -set QT_INSTALL_BINS <folder bin>” ). Then when I call “ qmake -query” I see all properties. Now I am able to add qmake in QtCreator.
  • Increasing UI font size of Qt Design Studio

    Unsolved
    1
    0 Votes
    1 Posts
    171 Views
    No one has replied