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
  • Can't attach debugger in QtCreator on Ubuntu

    Unsolved
    3
    0 Votes
    3 Posts
    684 Views
    Please_Help_me_DP
    @muman thank you for reply, Yes I'm building Debug version of an app. I don't know how but after I successively launched debugger in VS Code I'm now able to debug my application within QtCreator. Maybe restarting the PC also had some importance...
  • Error when creating a pro file.

    Locked Moved Unsolved
    2
    0 Votes
    2 Posts
    287 Views
    jsulmJ
    @IknowQT This is now your third thread with same question! Please stop double posting! Locking this one...
  • Change the development environment from vs 2019 to qt creator.

    Moved Unsolved
    5
    0 Votes
    5 Posts
    419 Views
    jsulmJ
    @IknowQT Are your Qt VS Tools up-to-date?
  • Qt Creator: copy and paste widgets why is it so hard

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    JonBJ
    @J-Hilk I agree whole-heartedly! I too found it a pain that Designer does not allow copy/paste of widgets, despite @Christian-Ehrlicher's objections. For example, Visual Studio certainly does. (I don't recall whether it places the paste randomly, or it may attach an outline of the pasted control to the mouse cursor for you to put wherever you want.) This is not an uncommon feature to want! As I said earlier, I did not know about this Qt Designer Scratchpad feature until @mrjj showed me once. It may not be obvious or even elegant, but it sure is useful!
  • Error occurred when creating a .pro file.

    Locked Unsolved
    2
    0 Votes
    2 Posts
    249 Views
    jsulmJ
    @IknowQT Please don't double-post! https://forum.qt.io/topic/131080/make-pro-file-not-working-object-reference-not-set-to-an-instance-of-an-object
  • QtCreator debugger showing (invalid)?

    Moved Unsolved
    9
    0 Votes
    9 Posts
    769 Views
    AxelViennaA
    The debugger behavior is a frequent issue, which results from trading speed for accuracy: the variable‘s display is initialized at an earlier point of time when the variable itself was uninitialized. Forcing all displays to be always current would slow down your debugger. Creating a small submethod and calling it with the variable in question as explained by @JonB usually forces correct displays if you really need it.
  • error: ‘class QString’ has no member named ‘toAscii’

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    Christian EhrlicherC
    QString::toAscii() is deprecated in Qt5 and removed in Qt6. But the documentation tells you how you can replace it.
  • Manual compilers

    Moved Unsolved
    2
    0 Votes
    2 Posts
    239 Views
    J.HilkJ
    @Wallie a wild shot in the dark here, since you don't give us much information. select QtCreator (which I'm assuming you're using) press ctrl + down arrow select the (presumably) hidden popup window. Proceed from there.
  • Qmake command is not available

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    Hi, As already suggested by @sierdzio, stop using sudo until the point of installation. Doing build as root is risky. If something goes wrong you might nuke your system without even noticing before it's too late. Which exact error do you have now ?
  • Clang goes crazy?

    Moved Solved clang
    4
    0 Votes
    4 Posts
    816 Views
    Christian EhrlicherC
    Simply disable this check for clazy in the analyzer settings. CLazy does not know if it's Qt5 or Qt6. In Qt5 QList was not optimal, in Qt6 QVector was renamed to QList ... maybe the next clazy version can somehow fiddle out what Qt version it's currently checking.
  • QtCreator

    Unsolved
    8
    0 Votes
    8 Posts
    782 Views
    sierdzioS
    Yes, I see what you mean. There is a graphical view of signals and slots but it works only for connections between UI elements. Tap F4 to get to it. But what you wrote is a great suggestion, please if you have some time report it on Qt bugtracker as a feature request!
  • QMediaPlayer playbackRate is ignored - linux debian

    Unsolved
    2
    0 Votes
    2 Posts
    299 Views
    E
    I discovered that it can be made to work, if you wait some time after it plays, and then change position of playback (even back to the same position). If you do it too soon (e.g. set position 0 right on start) then it doesn't work. Not sure what is the event on which that needs to be done to correctly apply the speed/playbackrate setting, so in worst case one can have a timer that keeps calling setposition back to current position all the time. It's kinda hack but it works. Is there a better way?
  • How can I turn off code highlighting?

    Moved Unsolved
    6
    0 Votes
    6 Posts
    452 Views
    I
    @VRonin It also was spoiled to \\A\([^/]:[^\\ When I opened the first time it was like this: https://drive.google.com/file/d/1epZFK0OGbFZEf1TAzV57XUzmobKUbao-/view?usp=sharing and I done new one in the same way. For Windows version, saving of "Ignored File Templates" also doesn't work. And this option doesn't work for highlighting in any case, because it for some "generic highlighter" and not used for case editing cpp files.
  • Cmake Configuration for Qt Cross Compilation at Raspberry Zero

    Unsolved
    3
    0 Votes
    3 Posts
    497 Views
    V
    @jsulm For me qmake projects works fine but CMake projects failed because of the following error: FAILED: Raspberrydemo : && /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -g CMakeFiles/Raspberrydemo.dir/Raspberrydemo_autogen/mocs_compilation.cpp.o CMakeFiles/Raspberrydemo.dir/main.cpp.o CMakeFiles/Raspberrydemo.dir/Raspberrydemo_autogen/EWIEGA46WW/qrc_qml.cpp.o -o Raspberrydemo -Wl,-rpath,/opt/qt5pi/sysroot/usr/local/qt5pi/lib /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Quick.so.5.15.2 /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Gui.so.5.15.2 /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5QmlModels.so.5.15.2 /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Qml.so.5.15.2 /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Network.so.5.15.2 /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2 && : /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libGLESv2.so.2, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Quick.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libpng16.so.16, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Gui.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libz.so.1, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Gui.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libharfbuzz.so.0, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Gui.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libdouble-conversion.so.1, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libicui18n.so.63, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libicuuc.so.63, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libicudata.so.63, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libpcre2-16.so.0, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libgthread-2.0.so.0, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) /opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libglib-2.0.so.0, needed by /opt/qt5pi/sysroot/usr/local/qt5pi/lib/libQt5Core.so.5.15.2, not found (try using -rpath or -rpath-link) FYI: I have followed https://github.com/PhysicsX/QTonRaspberryPi/blob/main/qt5.14.2onRaspberrypi tutorial for crosscompiling.
  • How to disable the Strict Equality Comparison warning

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    Z
    it worked for me, thanks a lot.. .
  • Horizontal scrolling in the code editor

    Solved
    3
    0 Votes
    3 Posts
    355 Views
    D
    Thanks for the update. Marking this one as solved.
  • Can't use keyboard in Qt Creator, bug?

    Unsolved
    4
    1 Votes
    4 Posts
    655 Views
    jsulmJ
    @Szymon-M-Sabat Interesting. Did you search in Fedora bug tracker (or whatever they have)?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    51 Views
    No one has replied
  • Qt Maintenance wrong scaling on FHD resolution

    Unsolved
    1
    0 Votes
    1 Posts
    129 Views
    No one has replied
  • Automation Testing for Qt Desktop application

    Unsolved
    2
    0 Votes
    2 Posts
    284 Views
    JonBJ
    @Sumaiya Depending on your needs, are you aware that Qt has Qt Test? Not much at Is there a open source automation tool for Qt app?.