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
  • Language file missing location nodes

    Unsolved
    3
    0 Votes
    3 Posts
    354 Views
    A
    That works! Thank you, I'm delighted...
  • defining CMake variable: what am I missing?

    Solved
    6
    0 Votes
    6 Posts
    804 Views
    sierdzioS
    @mzimmers said in defining CMake variable: what am I missing?: Are elements like "Env" explained somewhere? I don't know if there is a full list of all variables somewhere in the documentation. Some are mentioned here: https://doc.qt.io/qtcreator/creator-project-settings-environment.html#using-qt-creator-variables
  • [QtCreator] Android Templates

    Unsolved
    2
    0 Votes
    2 Posts
    277 Views
    SGaistS
    Hi, What kind of template are you expecting ? For Androïd deployment, it's described here.
  • Creator: setting variables for cross-development

    Solved
    2
    0 Votes
    2 Posts
    224 Views
    No one has replied
  • 0 Votes
    3 Posts
    331 Views
    DiracsbracketD
    @mrjj Thanks! I tried that already in CMakeLists.txt, trying both with include_directories and target_include_directories, but that does not help.
  • 0 Votes
    2 Posts
    597 Views
    M
    Solved it. The solution was very easy: sudo mkdir /root/Downloads/
  • Qt Creator: is it possible to change the font size of the side bar?

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    Guy GizmoG
    @Gowtham_rg said in Qt Creator: is it possible to change the font size of the side bar?: What source code changes have you done? Can you please share the change you've done? Those changes were all the way back in 2016 so I can't say if they're likely to still apply to the most recent version of Qt Creator. And now that I have a larger monitor I'm just running unmodified Qt Creator at this point, so I haven't merged these changes into a later version since probably 2017. But I made the following two changes. Right before the call to initView() in the constructor of ProjectTreeWidget in src/plugins/projectexplorer/projecttreewidget.cpp I added: m_view->setIndentation(12); m_view->setIconSize(QSize(8, 8)); QFont font(tr("Your Font Here"), 13); font.setStretch(QFont::SemiCondensed); m_view->setFont(font); initView(); and I added the line markWidth *= 0.6; into TextEditorWidget::extraAreaWidth in src/plugins/texteditor/texteditor.cpp thusly: if (d->m_marksVisible) { markWidth += documentLayout->maxMarkWidthFactor * fm.lineSpacing() + 2; // if (documentLayout->doubleMarkCount) // markWidth += fm.lineSpacing() / 3; markWidth *= 0.6; space += markWidth; } else { space += 2; } Again, this was Qt Creator 3.6.0, so I can't say if these changes will still work.
  • CMake and external libraries with Creator

    Unsolved
    3
    0 Votes
    3 Posts
    893 Views
    mzimmersM
    @mchinand I think this is a good approach. Here's what I've done: // somewhere in bash-land export XXX_LIBRARY_PATH="/home/mzimmers/wiced/sdk/WICED-Studio-6.6/43xxx_Wi-Fi/" // added to Build Settings -> Initial CMake parameters -DLIBRARY_PATH="$ENV{XXX_LIBRARY_PATH}" // in my CMakeLists.txt file set (LIBRARY_PATH "/xxx/" CACHE PATH "Path to SDK libraries") # default location in case no env variable exists. cmake seems to accept all of this. The missing ingredient seemed to be the cmake parameter that acts as the middleman between the environment variable and the variable in the configuration file. Thanks for the help. EDIT: I need to re-open this. While CMake does indeed accept this, it doesn't appear to decode the environment variable. [image: 0d478f6f-fb2a-4c12-982e-96ce40beb3ed.PNG] In my configuration file: message ("LIBRARY_PATH is " ${LIBRARY_PATH}) Outputs: LIBRARY_PATH is "$ENV{FLUIDRA_LIBRARY_PATH}" I'm guessing it's syntax error on my part in the CMake parameter...can someone tell me what I might be doing wrong? Thanks...
  • Properly using debugger commands in Creator

    Unsolved debugging gdb creator
    1
    0 Votes
    1 Posts
    414 Views
    No one has replied
  • 0 Votes
    4 Posts
    650 Views
    mzimmersM
    Found the answer here: I added this line to my CMakeLists.txt file: set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --specs=nosys.specs") Seems to have solved it.
  • Code beautifier(s) ?

    Moved Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    VRoninV
    Bit of a zombie post but my experience with the beautifier plugin has been abismal. Since then I just witched to clang-format (part of the clang compiler but an indipendent tool) and set up a pre-commit hook in my git repository that runs clang-format. Much more practical and usable
  • convert make project into something I can browse in Creator

    Unsolved
    7
    0 Votes
    7 Posts
    881 Views
    JKSHJ
    @mzimmers said in convert make project into something I can browse in Creator: @mzimmers hi guys - I have to bump this question about the "fake" installation; this is becoming too big an inconvenience to ignore any more. Perhaps the user forum isn't the right place for this question; where might be a better place for it? I don't have experience in this area, sorry. My next suggestion would be to try the Interest mailing list where Qt engineers hang out. You'll need to subscribe before posting. Alternatively, there are other groups online: https://wiki.qt.io/Online_Communities
  • ARM toolchain giving error on option '-rdynamic'

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    mzimmersM
    I tried creating a new project from scratch; same error. I do have this warning visible: [image: 12ddd33d-dc1b-49d1-9597-95a02a33f421.PNG] I'm not sure what this really means, though.
  • Qt Creator gdb hang on startup

    Solved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • QtCreator 5 performance analysis on a Windows 10 platform

    Unsolved
    4
    1 Votes
    4 Posts
    2k Views
    artwawA
    @mchinand Don't know, please ask people who maintain QtCreator.
  • [QtCreator] Fakevim change default leader key

    Unsolved
    2
    0 Votes
    2 Posts
    336 Views
    jsulmJ
    @listenerri said in [QtCreator] Fakevim change default leader key: I found the following source code You mean in QtCreator source code. You should consider asking this question on Qt developers mailing list.
  • QtCreator shortly freezes after saves if QmlDesigner was started

    Solved
    1
    0 Votes
    1 Posts
    219 Views
    No one has replied
  • 0 Votes
    3 Posts
    2k Views
    A
    Thank you for the answer. Setting a child did enable the layout selection. I don't understand the logic behind that at all but ok. QcmEntryGuess are QWidget I've created on the side. They're only a QLabel nested in two layout [image: 2e20a2c9-89a4-47e1-a1d3-6234e04464a2.png] Althought my QGridLayout is still only consisted of one row. I'm probably missunderstanding one of its property [image: 01294749-1d2a-4443-8237-3744be177d6c.png]
  • Error on building project on macOS Big Sur

    Solved macos11 qtcreator qt 6.1.2
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    I forgot about that one ! It has also bitten me on several occasions. Glad you found out and thanks for sharing :-)
  • Qt Installer Framework, set windows registry key

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    M
    @luca i want to create url protocol with the app path Computer\HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache and give refrence to url path can you please help me