Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qtcreator
    Log in to post

    • UNSOLVED [QtCreator] Application cannot find Qt shared libraries on macOS
      General and Desktop • qtcreator cmake macos rpath • • theodelrieu  

      1
      0
      Votes
      1
      Posts
      32
      Views

      No one has replied

    • SOLVED QtCreator WiFi debugging error: adb server version (41) doesn't match this client (39); killing...
      Mobile and Embedded • android qtcreator wifi connection • • Kyeiv  

      2
      0
      Votes
      2
      Posts
      24
      Views

      Solved by: adb kill-server sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb sudo chmod +x /usr/bin/adb adb start-server thanks to this
    • UNSOLVED Qt Creator IntelliSense for QML directory imports
      Tools • qml qtcreator intellisense • • haiku  

      1
      0
      Votes
      1
      Posts
      33
      Views

      No one has replied

    • UNSOLVED Qt Creator 4.14.0: cmake project with openmp: omp.h not found
      Tools • qtcreator • • alex9009  

      4
      0
      Votes
      4
      Posts
      127
      Views

      There is also the following pop-up when opening test.c in the sample project: Warning: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example. stdio.h:33:10: fatal error: 'stddef.h' file not found test.c:1:1: note: in file included from /home/user/CODE/test/test.c:1: test.c:2:10: note: in file included from /home/user/CODE/test/test.c:2: stddef.h is in the same directory as omp.h.
    • UNSOLVED qtcreator cannot debug with cmake debug-build
      Tools • qtcreator • • Mountqi  

      1
      0
      Votes
      1
      Posts
      25
      Views

      No one has replied

    • SOLVED QtCreator parser strange behaviour
      Installation and Deployment • qtcreator linux parser • • magartor  

      4
      0
      Votes
      4
      Posts
      33
      Views

      Hi @magartor, thanks for the feedback. So please mark this topic as SOLVED. Thanks!
    • UNSOLVED QtCreator doesn't load .cpp and .h files from CMake project
      General and Desktop • qtcreator cmake vtk • • Please_Help_me_D  

      4
      0
      Votes
      4
      Posts
      77
      Views

      If possible maybe somebody could clone the repository and try it his computer to open project and run CMake. Not necessary to build the project (it may take 9 hours) but before launching CMake set build dir path as short as possible (I have build folder C:\S\b and the source C:\S\Slicer) because Slicer has some problems with path length and CMake will throw an error if build folder path is too long. I'm very interested in working on this project in QtCreator and not in Visual Studio but that QtCreator's behavior doesn't leave me any chances.
    • UNSOLVED Compile using static Qt build with QtCreator - not using static OS libraries
      Tools • qtcreator static build os libraries • • montanaviking  

      7
      0
      Votes
      7
      Posts
      97
      Views

      Thanks, I am distributing my source code via GitHub and GPL. I think that so long as I do that, it doesn't matter whether or not I use static linking in so far as licensing is concerned. My code is open-source, at least that's my intent. I did find that I was able to easily modify the makefile emitted by Qt Creator to force static linking of most, but not all of the Linux system dependencies. Apparently, some of the OS libraries were available only as shared libraries and in some cases Qt libraries called shared Linux OS libraries so that I was not able to use all the available static libraries offered by Linux. Too bad that it doesn't appear that one can roll up a desktop app all into one executable with no shared library calls. I'm thinking this would be nice since then, it could be distributed to any Linux machine without consideration of the distribution or kernel version? Thanks, Phil
    • UNSOLVED Custom style isn't applied
      QML and Qt Quick • qml qtcreator styling custom style • • Rivvil  

      1
      0
      Votes
      1
      Posts
      63
      Views

      No one has replied

    • SOLVED Using QTimer::singleShot correctly for updating messages on GUI
      General and Desktop • qtcreator qlabel qtimer • • TUStudi  

      8
      0
      Votes
      8
      Posts
      140
      Views

      @TUStudi said: I actually have 6 QLabels, so I now have 6 timer and so on Derive a class from QLabel and add that functionality to it. Don't write the same code 6 times! My QLabels have the sizePolicy horizontal: preferred and vertical: fixed and a vertical length of 20. When a text is displayed, the QLabel expands so that the elements above the QLabel are also moved upwards and after the text disappears, they go back to their initial place. Fixed size policy means that widget uses its sizeHint() as the size. If you change the text the size hint also changes, so label grows/shrinks.
    • SOLVED Error when trying to set a breakpoint
      Tools • qtcreator breakpoint remote debuggin • • gfleck  

      3
      0
      Votes
      3
      Posts
      107
      Views

      It was my fault, the right .pro syntax is: QMAKE_CFLAGS_DEBUG += -Wno-cpp QMAKE_CXXFLAGS_DEBUG += -Wno-cpp The precedent syntax removes the -g gcc option from Makefile.
    • SOLVED Qt Creator does not launch on Ubuntu 20.04.1 in VirtualBox
      General and Desktop • qtcreator linux ubuntu • • TUStudi  

      8
      0
      Votes
      8
      Posts
      1423
      Views

      Hi @TUStudi, just to add that this problem is tracked as QTCREATORBUG-24561.
    • UNSOLVED qtcreator and QT apps fail to launch in CentOS with root privilege
      Installation and Deployment • qtcreator wayand qxcbconnection • • kevinguo  

      2
      0
      Votes
      2
      Posts
      112
      Views

      @kevinguo said in qtcreator and QT apps fail to launch in CentOS with root privilege: Hi: I am using CentOS 8.1. For some reason, I must run my app with root permission. I tried #sudo myapp or #sudo su #myapp Both failed with following output: QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0 No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :1 Could not connect to any X display. Then I tried launching qtcreator, but failed with the same error. Please note that I am able to launch QT apps in Ubuntu 18.04 with root permission in the same way. Ubuntu outputs the following warning but continues to run the app: QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0 The failing platform is CentOS 8.1. The XWindows is wayland. Now, the workaround is to log in GUI with root user name. But I still prefer logging in as normal user then run app in sudo mode. I appreciate if anyone gives some advice. Kevin I found the solution already. Just run this: xhost +SI:localuser:root Thanks Kevin
    • SOLVED no "Initial CMake parameters" field in Qt creator
      Tools • qtcreator cmake • • noone  

      2
      0
      Votes
      2
      Posts
      59
      Views

      @noone said in no "Initial CMake parameters" field in Qt creator: what should I do ? Update to 4.13 :-)
    • SOLVED Fix for build error "member access into incomplete type 'const clang::FileEntry'"
      Installation and Deployment • qtcreator build error building • • TBRZ  

      10
      0
      Votes
      10
      Posts
      1398
      Views

      @TBRZ said in Fix for build error "member access into incomplete type 'const clang::FileEntry'": notify the developers about a problem This is user forum. If you want to communicate with developers you should either use bug tracker or the mailing list.
    • UNSOLVED How to enable ClangRefactoring and ClangPchManager plugin ?
      Installation and Deployment • qtcreator plugins clang building build steps • • TBRZ  

      1
      0
      Votes
      1
      Posts
      64
      Views

      No one has replied

    • UNSOLVED Picking input from a LineEdit fails
      General and Desktop • qtcreator • • Coop4Free  

      2
      0
      Votes
      2
      Posts
      52
      Views

      @Coop4Free said in Picking input from a LineEdit fails: long long decLabel; getData(decTokens); ServerNet serverNet; serverNet.sendData(decLabel); decLabel is an uninitialized variable. What else is there to say?
    • UNSOLVED QtCreator 4.11 to 4.12 project tree view change
      General and Desktop • qtcreator • • Dariusz  

      1
      0
      Votes
      1
      Posts
      49
      Views

      No one has replied

    • UNSOLVED QtCreator - some basics questions...
      General and Desktop • qtcreator qtdesigner qtdesign • • Dariusz  

      4
      0
      Votes
      4
      Posts
      90
      Views

      @Dariusz said in QtCreator - some basics questions...: maybe how to change initial type of file from QWidget to QDialog/etc/etc? If you mean how to change the .h, cpp and UI file to be other type ? You will have to change in 3 places .h class MainWindow : public QMainWindow <<< change here .cpp MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) <<<< change here to new type .ui This you have to do outside creator, and its best if you close it. Open the ui file in other editor. ( its text)
    • UNSOLVED Relative pixel size and component visualization different depending on OS or HW
      QML and Qt Quick • qml qtcreator pixel • • prex  

      2
      0
      Votes
      2
      Posts
      48
      Views

      I checked out the ratio of the main frame on the embedded system, which is the same as on my desktop. The fixed pixel width and height of the main window are exactly the same. The high dpi scaling attribute has no influence. Also switching from font.pixelSize to font.pointSize has the same unwanted effect. How can the font proportions turn out different? If the main windows height is defined as 1080px, a font size of 20px must be clearly defined relative to it (1/54 of the main window height). But why does it take, let's say, 24px on my embedded system (which is 1/45)? I can find many posts about scaling, but what I want is no automatic, random scaling at all.
    • SOLVED QtCreator SIGSEGV in QString copy ctor
      Tools • qtcreator qt5.14.2 • • Jarek B  

      2
      0
      Votes
      2
      Posts
      87
      Views

      Cleaning PATH variable and MSYS2 Environment solve that. I think that it might be caused by different version of some library that was used (because I had a lot of paths in the PATH), but for now it is over and I am happy with that.
    • UNSOLVED Yocto SDK standard headers issue
      Mobile and Embedded • qtcreator yocto include path • • sebastienc  

      2
      0
      Votes
      2
      Posts
      88
      Views

      This is the output when I build from command line with qmake/make : root@debian:~# echo $QMAKESPEC root@debian:~# source /opt/qtsdk-Guinault-2020.03/environment-setup-armv7at2hf-neon-linux-gnueabi root@debian:~# echo $QMAKESPEC /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/mkspecs/linux-oe-g++ root@debian:~# mkdir hellowolrd_qt root@debian:~# cd hellowolrd_qt/ root@debian:~/hellowolrd_qt# nano helloworld.cpp root@debian:~/hellowolrd_qt# nano helloworld.pro root@debian:~/hellowolrd_qt# qmake helloworld.pro Info: creating stash file /root/hellowolrd_qt/.qmake.stash root@debian:~/hellowolrd_qt# make arm-linux-gnueabihf-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi -c -pipe -isystem/home/guinault/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types --sysroot=/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtWidgets -I/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtGui -I/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtCore -I. -I/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/lib/mkspecs/linux-oe-g++ -o helloworld.o helloworld.cpp In file included from /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtGui/qtguiglobal.h:43, from /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtWidgets/qtwidgetsglobal.h:43, from /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtWidgets/qapplication.h:43, from /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtWidgets/QApplication:1, from helloworld.cpp:1: /opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/QtCore/qglobal.h:45:12: fatal error: type_traits: No such file or directory # include <type_traits> ^~~~~~~~~~~~~ compilation terminated. Makefile:547: recipe for target 'helloworld.o' failed make: *** [helloworld.o] Error 1 root@debian:~/hellowolrd_qt# And this is CXX and CXXFLAGS : root@debian:~/hellowolrd_qt# . /opt/qtsdk-Guinault-2020.03/environment-setup-armv7at2hf-neon-linux-gnueabi root@debian:~/hellowolrd_qt# echo $CXX arm-linux-gnueabihf-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/qtsdk-Guinault-2020.03/sysroots/armv7at2hf-neon-linux-gnueabi root@debian:~/hellowolrd_qt# echo $CXXFLAGS -isystem/home/guinault/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types Anyone can help me please ? Thank you Sébastien
    • UNSOLVED qt creator execute too many git process
      General and Desktop • qtcreator • • xmokay  

      2
      0
      Votes
      2
      Posts
      50
      Views

      @xmokay It actually looks more like QtCreator starts one Git process but that one starts another one and so on. Don't know why this happens. Does it stay like this or are the processes terminated at some point?
    • SOLVED QtCreator taking a long time to run CMake
      Tools • qtcreator cmake • • rhvonlehe  

      5
      0
      Votes
      5
      Posts
      95
      Views

      @wokerjrvm How is your question related to the original question in this thread? Please open your own thread and ask there.
    • UNSOLVED QtCreator upload/run doesn't work for QNX
      Tools • qtcreator device qnx • • ewindes  

      4
      0
      Votes
      4
      Posts
      128
      Views

      After further testing, the issue isn't the "run in terminal" setting. Instead, it seems that if I'm using the QtQuick/QML stuff, then QtCreator reports the following: 11:16:51: Starting /tmp/QmlTest/bin/QmlTest ... 11:16:51: Application finished with exit code 0. i.e. it runs, but exits immediately, with no error code. If I then ssh into my target and manually run the same binary, I see the expected output on the screen, and it doesn't exit until I kill it with ^C. I don't see this issue if I run an QtWidget application. The C++ launcher for the QmlTest application is below. The contents of the QML file doesn't seem to matter. #include <QGuiApplication> #include <QQuickView> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQuickView *view = new QQuickView; view->setSource(QUrl(QLatin1String("qrc:/main.qml"))); view->show(); return app.exec(); }
    • UNSOLVED Include js in Qtcreator plugin
      General and Desktop • qtcreator • • Veepee  

      2
      0
      Votes
      2
      Posts
      66
      Views

      @Veepee said in Include js in Qtcreator plugin: Can someone let me know if this .js file can be included in my source files and the functions in js can be accessed from my source ? i guess you could instantiate a separate QJSEngine.....but why??
    • SOLVED QtCreator 4.11 display project differently to 4.10
      General and Desktop • qtcreator • • Dariusz  

      5
      0
      Votes
      5
      Posts
      81
      Views

      @aha_1980 Looks like it yea, not sure thoe. In any case I reverted back to early creator and everything works.
    • UNSOLVED QRegisterType parsed by QtCreator: create .qmltype file?
      QML and Qt Quick • qml qtcreator qqmlengine qmlregistertype qmltypes • • Marr11317  

      1
      0
      Votes
      1
      Posts
      70
      Views

      No one has replied

    • UNSOLVED QtCreator segfault on startup (MacOS)
      General and Desktop • qtcreator segfault qtcreator 4.11 • • peteispo  

      2
      0
      Votes
      2
      Posts
      317
      Views

      @peteispo Try to start QtCreator with disabled plug-ins to see whether it makes a difference (-noload all).
    • UNSOLVED [QtCreator] Header and Source folder organization with CMake 3.14 and above
      Tools • qtcreator cmake project files • • jgoenetxea  

      3
      1
      Votes
      3
      Posts
      768
      Views

      I have the same problem on MacOS but this seems not coming from CMake but from the last version of QT Creator 4.11.x I installed an instance of Qt Creator to 4.10.x and get back project structure as folders structure.
    • How to create a Qt Creator plugin in C++, a working example explained
      Tools • qtcreator plugin tutorial article • • vivaladav  

      2
      8
      Votes
      2
      Posts
      118
      Views

      Related to my post... Yesterday Cristian Adam has published another interesting article on Qt's blog about Building Qt Creator plugins with GitHub Actions.
    • SOLVED QtCreator Permission Denied to File
      General and Desktop • qtcreator embedded linux bug windows10 permissions • • rafaelellin  

      8
      0
      Votes
      8
      Posts
      1000
      Views

      @aha_1980 Hi again! I created a bug report at https://bugreports.qt.io/browse/QTCREATORBUG-23295, lets hope that someone finds a fix. Thanks for your time!
    • UNSOLVED Using QCustomPlot with Qt Quick (QML) instead of QWidget?
      General and Desktop • qml qtcreator qcustomplot • • SpaceToon  

      3
      0
      Votes
      3
      Posts
      265
      Views

      @vmanso said in Using QCustomPlot with Qt Quick (QML) instead of QWidget?: @SpaceToon Why not just use QtCharts instead of QCustomPlot ? https://doc.qt.io/qt-5/qtcharts-index.html But is it possible du plot sensor data via Bluetooth Low Energy in real time like this: Click for the video
    • SOLVED Strange behavior in QtCreator Gui Designer
      General and Desktop • qtcreator qtdesigner designer error • • qt_emp  

      3
      0
      Votes
      3
      Posts
      86
      Views

      @qt_emp I found it I think. When I turned off auto indent it stopped doing this.
    • UNSOLVED QtCreator - compile statistics gone...
      General and Desktop • qtcreator • • Dariusz  

      1
      0
      Votes
      1
      Posts
      69
      Views

      No one has replied

    • SOLVED QT TcpServer detecting input and correctly replying
      General and Desktop • qtcreator qt5 qtcpserver • • rktech  

      8
      0
      Votes
      8
      Posts
      312
      Views

      As @SGaist pointed out you don't fill _sockets anywhere and as I pointed out you don't need to search the socket in _sockets at all since you already cast QObject::sender() to the correct QTcpSocket although qobject_cast or dynamic_cast should be used instead static_cast
    • SOLVED Setting up the QT Environment
      Tools • qtcreator setup environ run compiler • • Menre  

      3
      0
      Votes
      3
      Posts
      279
      Views

      What did you do to fix your issue? I have the same problem.
    • I had a problem compiling QtCreator4.10 using cmake。
      General and Desktop • qtcreator cmake • • smallcsduck  

      2
      0
      Votes
      2
      Posts
      120
      Views

      Hi, What version of Qt are you using to build Qt Creator ? How did you install it ?
    • SOLVED How to use KDE Frameworks with Qt Creator
      Tools • qtcreator qt5 module kde • • daljit97  

      8
      1
      Votes
      8
      Posts
      1750
      Views

      @mpyne said in How to use KDE Frameworks with Qt Creator: Hi @daljit97, as you guessed, the difficulty is in helping Qt to find the appropriate metadata so that qmake knows how to handle "KSyntaxHighlighting" when it finds it in your QMake project file. Looking at some of the Qt docs on a related topic, I found this page on advanced QMake usage. The part you care about is the third option to add features to qmake: using the QMAKEPATH environment variable. By exporting this variable in your shell to the KF5 install directory, qmake should be able to find the various KF5 modules. For example, my KF5 install is at ~/kde-5, so I did something like: export QMAKEPATH=$HOME/kde-5 qmake make on a shell project # program.pro TEMPLATE = app TARGET = program INCLUDEPATH += . QT += widgets KSyntaxHighlighting SOURCES += main.cpp // main.cpp #include <QMainWindow> #include <QApplication> #include <QLabel> #include <Definition> int main(int argc, char **argv) { QApplication app(argc, argv); QMainWindow *win = new QMainWindow; KSyntaxHighlighting::Definition def; win->setCentralWidget( new QLabel(QStringLiteral("Hi!"), win) ); win->show(); return app.exec(); } It is also possible to build Qt applications with CMake, and that is more traditional for significant KF5 users. But as long as this works for you it looks like it won't be too hard to do what you're trying to do while continuing to use qmake. Ok so that was very helpful. On my machine that KSyntaxHighlighting had a .pri file in /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules. Following your suggestion I added a QMAKEPATH Environment variable in Qt Creator using the GUI tool that Qt Creator provides and now everything works!