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
  • little bug when creating Q_OBJECT C++ classes

    Moved Unsolved
    11
    0 Votes
    11 Posts
    724 Views
    G
    The issue is that QT Creator does not capitalize the first letter of the variable when it adds a word to the start when using the refractor menu option. The MOC file has it automatically renamed. As the MOC file is constantly regenerated I will need to correct the function definitions and declarations.
  • How to configure Visual Studio to recognize Qt source?

    Moved Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • 0 Votes
    2 Posts
    199 Views
    SGaistS
    Hi, From a quick look at the forks of the project, this one seems to have something for Qt 6.
  • QToolBar Icons Not Showing

    Solved
    6
    0 Votes
    6 Posts
    407 Views
    Z
    I solved this by loading the icons into the actions using an absolute path. I know it isn't pretty, portable, or standard, but it works for me on my computer. The only place this app will ever be used. QString openIcon = "absolute path to my icon image"; ui->actionOpen->setIcon(QIcon(openIcon));
  • Qt VS Tools not saving Qt version

    Unsolved
    2
    0 Votes
    2 Posts
    196 Views
    S
    Steps to reproduce: Open Visual Studio 2019. Navigate to Extensions → Qt VS Tools → Qt Versions. Click Add and select qmake.exe from the msvc2017_64 folder of my Qt installation. Click OK (no error messages appear). Reopen Qt Versions—the list is empty again. Troubleshooting attempted: Restarted Visual Studio after adding the Qt version. Ran Visual Studio as Administrator. Checked the registry entries under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\16.0\QtProject but found no Qt versions listed. Tried reinstalling the Qt VS Tools extension. Verified that my Qt installation is working by running qmake --version in the command prompt.
  • All kits greyed out in QtCreator

    Moved Solved
    11
    0 Votes
    11 Posts
    592 Views
    SGaistS
    @batguano it can but you have to explicitly select it.
  • How to build wxWidgetsets project using Qt Creator?

    Solved
    15
    0 Votes
    15 Posts
    879 Views
    K
    Ok. Finally solved everything. Checked compiler output and wx-config shell execution doesn't work in case of QMAKE_CXXFLAGS like it works in LIBS. So I changed this: QMAKE_CXXFLAGS += `/home/dibo/programowanie/wxWidgetsInstallGTK/bin/wx-config --cflags` To what this command exactly return: QMAKE_CXXFLAGS += -I/home/dibo/programowanie/wxWidgetsInstallGTK/lib/wx/include/gtk3-unicode-static-3.2 -I/home/dibo/programowanie/wxWidgetsInstallGTK/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread And now everything works perfectly, even code completion. Important -D__WXGTK__ was missed because gcc was called without what wx-config return
  • how to create and open pdf in qt using qt creator using stm32mp157d-dk1

    Locked Unsolved
    2
    0 Votes
    2 Posts
    245 Views
    SGaistS
    Hi, As already warned: please don't create the same thread in multiple sub-forums. One is enough. Duplicate Closing this one.
  • clangd and Kit Environment Variables

    Solved
    2
    0 Votes
    2 Posts
    261 Views
    M
    To answer my own question, I was setting OE_QMAKE_CFLAGS and OE_QMAKE_CXXFLAGS with those values. This appears to be what it was pulling from. By removing these and instead moving it to the Platform codegen flags and Platform linker flags for the compiler settings, I seem to achieve the result that I want. It's a little more duplication than I would want, but it is functional.
  • Qt Creator: is there intention to have Devcontainers support?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    R
    Vote for it here: https://bugreports.qt.io/browse/QTCREATORBUG-32574
  • QtCreator on Linux always looses Mousewheel control after a long period of sleep

    Unsolved
    4
    0 Votes
    4 Posts
    525 Views
    C
    I've found a workaround: reload kernel modules hid_generic and hid_multitouch sudo rmmod hid_generic sudo modprobe hid_generic sudo rmmod hid_multitouch sudo modprobe hid_multitouch
  • Github copilot can't sign out

    Unsolved
    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • unable to add widgets to object inspector in qt creator/designer

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • Qt Designer Active Button

    Unsolved
    6
    0 Votes
    6 Posts
    486 Views
    M
    @Adka Do you mean something like this? [image: tBeJYwA.gif] In Qt designer, you can set the button property to checkable, then you can right click the button and create or add it to a QButtonGroup, then select the group, and in the properties you can check the "exclusive" property for only one to be active at a time.
  • No Build Found - Qt Creator

    Solved
    3
    0 Votes
    3 Posts
    325 Views
    J
    Thanks for the advice. It turned out that I needed to manually add the CMake path to qmake.exe After that I was able to select the CMake Tool: setting on the Kits tab. [image: 765cd0cc-d48b-4943-88a8-f8d93a327dac.png] [image: a4c9b1be-e97c-403e-abe7-c81b534e9517.png]
  • Found not working imports

    Moved Unsolved
    1
    0 Votes
    1 Posts
    85 Views
    No one has replied
  • Cannot resize GUI panels under v15.0.1

    Moved Unsolved
    1
    0 Votes
    1 Posts
    86 Views
    No one has replied
  • Qt designer consistently crashes on Windows 11

    Unsolved
    2
    0 Votes
    2 Posts
    301 Views
    sierdzioS
    Best use Qt Creator instead, it offers the same functionality while being a full-blown IDE at the same time. Alternatively, you can try downgrading to some older Qt version, or use older Qt Designer with new Qt, it should still work.
  • ToggleButton icon in QSCustomSlideMenu does not appear

    Unsolved
    8
    0 Votes
    8 Posts
    476 Views
    A
    My qrc file: <RCC> <qresource prefix="icons"> <file>icons/about.png</file> <file>icons/bell.png</file> <file>icons/bell (1).png</file> <file>icons/edit.png</file> <file>icons/file.png</file> <file>icons/folder.png</file> <file>icons/help.png</file> <file>icons/home.png</file> <file>icons/left-chevron.png</file> <file>icons/person.png</file> <file>icons/raports.png</file> <file>icons/search.png</file> <file>icons/settings.png</file> </qresource> </RCC> It is inside
  • Getters/setters added twice

    Unsolved
    4
    0 Votes
    4 Posts
    294 Views
    SGaistS
    @angela2016 Nice catch ! Since you found the bug and the fix, please submit a patch :-)