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.4k Topics 34.4k Posts
  • This topic is deleted!

    Solved
    5
    0 Votes
    5 Posts
    73 Views
  • 0 Votes
    6 Posts
    204 Views
    SGaistS

    Hi,

    Can you provide a minimal sample code that reproduces this behaviour ?

  • 0 Votes
    3 Posts
    127 Views
    Christian EhrlicherC

    This similar to https://bugreports.qt.io/browse/QTBUG-130824 even though QtCreator does not use the win11 style afaik.

  • 0 Votes
    4 Posts
    233 Views
    M

    @cristian-adam Thanks for the quick help! This is really great and works like a charm. I can simply pass all the arguments via the environment variable - how nice!
    I will mark this as solved. Thanks again for the help and many greetings
    matse

  • F2 Follow symbol under cursor opens build file

    Unsolved
    3
    0 Votes
    3 Posts
    212 Views
    R

    I noticed the same after switching from Qt6.5 to 6.7 and upward. I think it has something to do with the new qmlls.

    @Michel-de-Boer said in F2 Follow symbol under cursor opens build file:

    Is there some setting where I can tell to look in my source directory first for QML symbols?

    Maybe there is some kind of env variable to set but it does not seem to be documented.

    For me it looks like a regression since now we cannot just Follow symbol to edit the underlying compo0nent directly. I hope something will be done to solve this issue.

    I've open a bug: https://bugreports.qt.io/browse/QTCREATORBUG-32120

  • QtCreator 15: CMake Folder property

    Solved
    3
    0 Votes
    3 Posts
    150 Views
    _

    @jsulm Thanks!

    I think I just got this feature wrong. As far as I understand now, this is used if you have multiple build targets where each of the targets is organized in it's own folder.

    I usually have only one build target (e.g. "Compile these 10 source .cpp/.h files into one exectuable") and I want to structure my source-files into IDE-folders. This is being done using CMAKE source_group and works in Qt Creator.

  • Problem with Android14 Text Selector

    Unsolved
    1
    0 Votes
    1 Posts
    54 Views
    No one has replied
  • SOFT ASSERT in QtCreator 15

    Unsolved
    3
    0 Votes
    3 Posts
    129 Views
    JoeCFDJ

    @aha_1980 Thanks. Looks like a bug not fixed yet.

  • 0 Votes
    3 Posts
    93 Views
    R

    @roy815 said in How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint:

    Development environment:c++11 qt5.12 centos
    My needs: add Qt::WindowContextHelpButtonHint in QMainWindow and QDialog
    what i have done but no effect:setWindowFlags(Qt::CustomizeWindowHint|Qt::WindowContextHelpButtonHint | Qt::WindowCloseButtonHint );

    I have tried that what you say yesterday,but no effect too.I looked up a lot of information on the Internet, there is no relevant solution.May be ,In Linux, it is not possible to add a context help button to dialogs or mainwindow.

  • 0 Votes
    2 Posts
    80 Views
    C

    Solved by updating Qt:

    image.png

    image.png

  • 0 Votes
    3 Posts
    164 Views
    D

    @Pl45m4 I apologize for my incomplete explanation. What I meant to say is exactly this:

    I created a project and build/run settings which includes path of destinations, executables and qmake settings. When I publish my project to another person all the settings I created are missing. As you said pro.user file shouldn't shared between projects or used on other systems. But As I read in qt documents it says pro.shared file could be shared for make projects settings portable. The problem is I wrote this file and I can share my settings to another system, but every time I need to change the version and set the current path of project for build/run configurations.
    Here is an example:

    C:\Users\duruk\Desktop\Sample\build

    This is the target path of my Press_Release build configuration. As you see this path is unique for my system (name of project is Sample, this folder contains pro file and pro.shared file). I have written a bash file to changing the paths to current paths, and a manual for describing how to user could set configuration. This is the bash file I wrote to changing paths:

    DOSYA="Sample.pro.shared" OLD="xxxxx" NEW=$(PWD) if [ ! -f "$DOSYA" ]; then exit 1 fi sed -i "s|$OLD|$NEW|g" "$DOSYA"

    Well now I'm searching a way to settings project path automaticly and and prevent changing ProjectExplorer.Project.Updater.FileVersion variable every time project moved another system. Is there anyway to share settings more easy and effective?

    The documentation of the method I tried:

    https://doc.qt.io/qtcreator/creator-sharing-project-settings.html

    Thank you for your reply.

  • anonymous class

    Unsolved
    3
    0 Votes
    3 Posts
    131 Views
    F

    I have installed Qt 6.8.1 (before I had 6.8.0) and I have no problem.
    Thank you (I am French and my english is wery little or bad)

  • page numbers

    Unsolved
    1
    0 Votes
    1 Posts
    49 Views
    No one has replied
  • 0 Votes
    3 Posts
    131 Views
    8Observer88

    The same for Qt Creator 15.0.0-rc1 (14.0.84) that I've downloaded here: https://github.com/qt-creator/qt-creator/releases

  • Change build directory with cmake

    Moved Unsolved
    5
    0 Votes
    5 Posts
    482 Views
    M

    @Christian-Ehrlicher said in Change build directory with cmake:

    cmake does not place anything anywhere without question. It does what it gets told. Maybe you configured QtCreator (you did not tell us what you're using as IDE) so that the build dir is somewhere else, I don't know.

    I'm using Qt Creator 14.0.2.
    Anyway, there is no need to restart from scratch. It was enough to remove the kit from Build&Run and select it again.
    It seems the chaning of the build directory is not working, at least on my installation.

  • 0 Votes
    1 Posts
    62 Views
    No one has replied
  • Linux Arm Not Displaying QString correctly in Debugger

    Moved Solved
    3
    0 Votes
    3 Posts
    184 Views
    D

    I have now successfuly installed the online installer for Qt6 on a fresh Pi OS64. I had to install some dependencies including some to get the online installer to run without crashing.

    From the Installer, I selected custom install, selected an older Qt6, then selected the components I required including Qt Creator and debug symbols. The online install then proceeded to completion without problems. QtCreator was added to the Progamming Menu making it easy to launch.

    I am back to being able to run the QtCreator debugger and view items like QString correctly, although it took me several days of frustration to get there.

    I planned to detail the dependencies I installed but this forum thought it was spam.

  • Shortcut for Variable Info/Mouse Hover

    Solved
    2
    0 Votes
    2 Posts
    99 Views
    aha_1980A

    @Julius: Indeed that works by pressing the Alt key when the cursor is in a variable and Edit > Preferences > Text Editor > Behavior > Mouse and Keyboard > Show help tooltips using keyboard shortcut (Alt) is checked.

    Regards

  • 0 Votes
    2 Posts
    101 Views
    jsulmJ

    @osirisgothra said in Never (ever) refactoring class to "separate set of dedicated source files" ever again:

    Long story short, I lost a whole days worth of work

    That's why there are version control systems like Git out there.
    Just commit your changes regularly, especially before doing bigger/risky changes.

    What you describe sounds like a bug in QtCreator, you should create a bug ticket in https://bugreports.qt.io/secure/Dashboard.jspa

  • How to use qmllint with modules

    Unsolved
    2
    1 Votes
    2 Posts
    99 Views
    KH-219DesignK

    (Disclaimer: I have not yet tried to use qmllint myself. I previously described my own method to "ban qml warnings" here: https://forum.qt.io/topic/113028/is-it-possible-to-use-any-qml-parser-tool )

    There is an open Qt bug with title "How to use qmllint on multiple components in one project" here: https://bugreports.qt.io/browse/QTBUG-120442

    That bug report seems perhaps relevant? There are a lot of comments there. Maybe some will give you clues.