Navigation

    Qt Forum

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

    • SOLVED [Qt on Android] App doesn't start when i set specific defaultConfig on build.gradle file
      Mobile and Embedded • c++ android qt creator gradle api 31 • • Gianluca Bernardi  

      8
      0
      Votes
      8
      Posts
      146
      Views

      @Gianluca-Bernardi I have default as well. Not sure how you got full before. Good to know you solved the issue.
    • SOLVED How to access the data received from FTP server?
      General and Desktop • qt creator • • kayakaan02  

      5
      0
      Votes
      5
      Posts
      84
      Views

      @kayakaan02 said in How to access the data received from FTP server?: Also I assume I cannot take this as a file and directly save it? Of course you can. I also wrote it in my previous post...
    • UNSOLVED QMYSQL driver not loaded on Ubuntu
      Installation and Deployment • qt5 qt creator error • • artem1997262  

      15
      0
      Votes
      15
      Posts
      144
      Views

      @artem1997262 said in QMYSQL driver not loaded on Ubuntu: Although below shows found that file Where is it located? And did you check whether it is 64bit this time?
    • UNSOLVED Receive Data QserialPort
      General and Desktop • c++ qt creator qserialport readyread • • manel.sam  

      10
      0
      Votes
      10
      Posts
      137
      Views

      @JonB @mrjj It's coming back to me. I once had the same problem with an IMU sensor that I could not solve under windows. But once under linux with the same code, I receive the data perfectly. Same thing, I just tested under linux for the GPS, I receive the data but not under Windows. To this day I don't know where the problem comes from
    • UNSOLVED How to create and use a QVector in other functions or is there an easier way to do this?
      General and Desktop • c++ qt creator c++ qt qvector optimization • • Turbotroop  

      6
      0
      Votes
      6
      Posts
      127
      Views

      @Turbotroop OK, so: Is the code pasted now currently what you have, exactly? What error do you currently have? Have you acted on the previous comments? For example: although it won't generate a compilation error, it does not make any sense to set up all these boxes or arrays in the main window destructor, does it? Why not in, say, the constructor instead?
    • UNSOLVED How to create log function qt c++
      General and Desktop • c++ qt creator log code • • manel.sam  

      3
      0
      Votes
      3
      Posts
      116
      Views

      Hi @JonB , Thank's for your reply . I just solved the problem. My goal was to put them in a text file
    • SOLVED Fresh Qt install, Qt Creator not working because Utils.dll wasn't found
      Installation and Deployment • qtcreator qt creator installation install qt creator 8.0 • • MatusGuy  

      11
      0
      Votes
      11
      Posts
      282
      Views

      @hskoglund No
    • SOLVED QProcess not working in QT Creator (using qt version 6.3.0)
      General and Desktop • qt creator qprocess qt 6.3.0 • • BigBen  

      4
      0
      Votes
      4
      Posts
      168
      Views

      @BigBen said in QProcess not working in QT Creator (using qt version 6.3.0): However, p->startCommand("dir C:\\Users") gives me no error and no output. Well that is interesting. As I said I only just discovered looking at the docs. It's new in Qt 6.0. I do not use Qt 6, nor Windows, so I cannot comment. If you look at he examples at https://doc.qt.io/qt-6/qprocess.html#startCommand you can see them claiming to issue dir commands that way, that's all I can say. I want to ask that in p->start("cmd", { "/c", "dir C:\\Users" });, what does the /c mean in the second argument? The Windows/DOS cmd.exe takes various arguments, as you can see from running cmd /?. Including: /C Carries out the command specified by string and then terminates Basically without the /c it runs an interactive Command Prompt, the command-line console. With the /c it interprets and executes the command line string following it, i.e. your dir .... It does not open a Command Prompt window and it returns to your code immediately after executing the command. dir is built into cmd.exe --- along with many other "simple" commands like echo or mkdir --- there is no external dir.exe file to execute, so we need cmd /c dir to perform it.
    • UNSOLVED QtCreator Docker plugin forgets Kit items
      Tools • qt creator docker docker plugin • • S_Wuest  

      5
      0
      Votes
      5
      Posts
      181
      Views

      I still haven't found a solution. There is also a ticket in the bugreport system, which hasn't been solved for now, i added my information in order to add more awareness to this issue. I really like the idea of having such a plugin as it makes cross compilation so much easier / cleaner. I really hope that the development will be continued at some point... Here is the link to the ticket: https://bugreports.qt.io/browse/QTCREATORBUG-25981
    • UNSOLVED QT compiler linker error
      The Lounge • qt creator c++ qt makefile error • • ELIF  

      2
      0
      Votes
      2
      Posts
      154
      Views

      @ELIF Please post the actual compiler/linker error. it is somewhere above of what you posted.
    • UNSOLVED Qt Creator rpath-link
      Italian • qt creator qt6 windows 10 raspberry crosscompile • • Gio26  

      1
      0
      Votes
      1
      Posts
      142
      Views

      No one has replied

    • UNSOLVED How to make localhost webpage
      General and Desktop • qt creator qtcpserver localhost • • duckrae  

      3
      0
      Votes
      3
      Posts
      169
      Views

      You need to create an AJAX client in your web-page. You could do this with a JavaScript timer that periodically requests data via a GET request to your application. Your application would need to listen for these requests using a TCP socket then respond. Depending on the amount of data you are going to be sending back to the client you may want to consider changing the method to a POST instead of GET as GET is limited in the data response to the URL length. You will also need to have a web-server, you could build a web-server into your application using TCP sockets, if not use Apache or something else for prototyping.
    • UNSOLVED From OSX to Windows10
      Installation and Deployment • qt creator windows 10 osx • • pauloord  

      8
      0
      Votes
      8
      Posts
      149
      Views

      Sure you can but that is a separate install. Microsoft does not allow third party installation. As for the deployment, windeployqt is the cousin of macdeployqt. Using it will simplify the deployment process.
    • SOLVED Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().
      Tools • qt creator mingw qt4.8 • • Curtwagner1984  

      9
      0
      Votes
      9
      Posts
      281
      Views

      @Christian-Ehrlicher Thank you for clarifying!
    • UNSOLVED How to use QWebEngineView module in his project?
      Installation and Deployment • qt creator c++ qt webkit • • gouneken  

      4
      0
      Votes
      4
      Posts
      189
      Views

      @JonBI don't know if that's the problem, but I downloaded the QWebView module using the maintenance tool but still QtCreator does not recognize it as an existing module.
    • UNSOLVED I am try to develop app for android to generate the random number.
      Mobile and Embedded • android qt creator • • dev_liya  

      2
      0
      Votes
      2
      Posts
      146
      Views

      @dev_liya Why do you need threads to generate random numbers?! You can do this way easier using QTimer...
    • SOLVED How can I hide my Api key?
      General and Desktop • qt creator qt6 api firebase • • HeerokNewbie  

      5
      0
      Votes
      5
      Posts
      282
      Views

      ever hear of macro guarded code inclusion and .gitignore?
    • UNSOLVED Qmake cannot find libraries
      Installation and Deployment • linux qt creator libraries pkg-config • • dhaus  

      4
      0
      Votes
      4
      Posts
      908
      Views

      The PKG_CONFIG_PATH is an environment variable so you need to add it before running qmake. So set it through Projects > Build Settings > Build Environment in QtCreator or set it through terminal before running qmake manually in terminal. Then add following lines in your .pro file: mac { #if you need to specify PKG_CONFIG = /usr/local/bin/pkg-config } #someone says this need in some Qt versions but not need in my Qt 5.12.12 QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG += protobuf \ grpc \ grpc++ I can't find a way to set environment variable in .pro file. Can you do it?
    • UNSOLVED Fast writing to mongodb make Application not responding
      General and Desktop • qt5 qt creator thread mongodb mongocxx • • Vivek_A  

      7
      0
      Votes
      7
      Posts
      281
      Views

      @Vivek_A I note that all your questions are about mongodb, its performance, and so on. Have you tried joining some mongodb forum where these might be better answered?
    • UNSOLVED How to fix QML code editor auto-completion for integrated C++ methods?
      QML and Qt Quick • qml qt creator c++ windows setcontextprope auto completion • • a_titov  

      4
      0
      Votes
      4
      Posts
      502
      Views

      Hello guys, I'm quite often facing the same problem. Who to fix this problem?
    • UNSOLVED Unable to compile when using QCustomPlot
      General and Desktop • qt creator desktop qcustomplot msvc2019 qgenericmatrix • • JPolo  

      2
      0
      Votes
      2
      Posts
      252
      Views

      @JPolo said in Unable to compile when using QCustomPlot: I use Qt Creator 4.15.0 based on Qt 5.15.2 MSVC2019 That is not necesserilly Qt version you're using (this is the Qt version used to build QtCreator). What Qt version did you install? What is the first error message? Did you do what the tutorial suggests: "To use the shared library in your application, set the define QCUSTOMPLOT_USE_LIBRARY before including the QCustomPlot header."?
    • UNSOLVED How do I use QWebView in a computer project and get the specification of attributes and methods for QWebView in the documentation?
      Qt 6 • qt creator c++ qt qwebview qt documentatio • • gouneken  

      1
      0
      Votes
      1
      Posts
      138
      Views

      No one has replied

    • UNSOLVED Android settings have errors. How to fix this ?
      Tools • qt creator • • Hasibul Hasan Chowdhury  

      1
      0
      Votes
      1
      Posts
      137
      Views

      No one has replied

    • SOLVED How to create translation files (.ts) in our project from lupdate command?
      Qt 6 • qt creator qt6 translation lupdat • • gouneken  

      4
      0
      Votes
      4
      Posts
      853
      Views

      @J-Hilk Thanks, even though that was not the answer I expected, you showed me a shortcut that saves me from using the command line. It will save me time. Have a nice day!
    • SOLVED Comment permettre l'utilisation de tous les fichiers de classe dans un projet à partir de l'inclusion de QtGui ?
      French • qt creator qwidget • • gouneken  

      5
      0
      Votes
      5
      Posts
      288
      Views

      @SGaist Merci pour vos conseils à l'avenir , j'éviterai de faire ce genre d'erreur . Bonne fin de journée.
    • UNSOLVED Utilisation des formats d'images divers avec qt
      French • c++ qt creator gui qt 6 • • gouneken  

      2
      0
      Votes
      2
      Posts
      246
      Views

      Bonjour, es-tu sûr que le jpg a la bonne taille et qu'il peut être affiché dans le QPushButton ? Voici une petite méthode pour mettre une icône à la bonne taille. Salutations de Vienne, où il fait froid, dans le lockdown. Axel QImage tint(QString icon, QColor color, qreal strength, int w, int h) { QImage src = QIcon(icon).pixmap(QSize(w,h)).toImage(); if(src.isNull()) return QImage(); QGraphicsScene scene; QGraphicsPixmapItem item; item.setPixmap(QPixmap::fromImage(src)); QGraphicsColorizeEffect effect; effect.setColor(color); effect.setStrength(strength); item.setGraphicsEffect(&effect); scene.addItem(&item); QImage res = src; QPainter ptr(&res); scene.render(&ptr, QRectF(), src.rect() ); return res; }
    • UNSOLVED QScrollArea
      General and Desktop • qt creator qscrollarea image display show images • • Sai Raul  

      5
      0
      Votes
      5
      Posts
      182
      Views

      @Sai-Raul Look : https://doc.qt.io/qt-5/qscrollarea.html Whitout Qlablel.. There is QGraphicsScene with QGraphicsView.
    • UNSOLVED GUI change with signal and slot
      General and Desktop • qt creator qthread qt gui • • duckrae  

      9
      0
      Votes
      9
      Posts
      197
      Views

      @duckrae First remove all that thread stuff
    • UNSOLVED Qt Creator trying to build qml-puppet with invalid parameters for compiler
      Tools • qt creator qt 5.12 qmlpuppet • • Flole  

      1
      0
      Votes
      1
      Posts
      102
      Views

      No one has replied

    • UNSOLVED i have errors in Android Settings in QT Quick
      Qt 6 • qt creator qt quick qt 6 android sdk • • Osama Adel  

      2
      0
      Votes
      2
      Posts
      190
      Views

      @Osama-Adel Please add Android SDK Command-line Tools, it is required to enable android build with QtCreator
    • SOLVED Mongodb doesn't work : inferior stopped, unknown signal
      General and Desktop • c++ qt5 qt creator mongodb • • Vivek_A  

      19
      0
      Votes
      19
      Posts
      725
      Views

      still in mingw way problem not solved . so i choose msvc compiler to do that .. so iam closing this ...
    • UNSOLVED Qt creator console project isnt worked in release mode, but worked in debug!
      General and Desktop • qt creator release mode kits • • SergeyK12  

      4
      0
      Votes
      4
      Posts
      231
      Views

      @SergeyK12 said in Qt creator console project isnt worked in release mode, but worked in debug!: And everything worked! Glad you found out. Please don't forget to mark your post as solved!
    • SOLVED Installing latest Qt creator on Ubuntu 16.04
      Tools • qt creator ubuntu 16.04 • • koahnig  

      6
      0
      Votes
      6
      Posts
      351
      Views

      Qt creator seems to work. Therefore I am not worrying about the statistic plugin message.
    • SOLVED URGENT : How to Show Another Window From MainWindow in QT using c++
      General and Desktop • qt creator • • Jasmin Quinn  

      42
      0
      Votes
      42
      Posts
      1875
      Views

      Is it correct to say that now the "main project" has all the code of "chess" added so basically there is only one application running? The objective to "have two windows" has been met, however, adding more "child applications" using same philosophy of "cut and paste" is not what " reusing code " means to me.
    • SOLVED Windows not responding on reading file from txt
      General and Desktop • qt creator qfile file read • • deleted286  

      21
      0
      Votes
      21
      Posts
      1334
      Views

      @suslucoder said in Windows not responding on reading file from txt: It works so please don't forget to mark your post as solved!
    • UNSOLVED Qt WebAssembly Unable to Build: redefinition of '__glewCreateProgram' as different kind of symbol
      Qt for WebAssembly • qt creator webassembly build failed • • ConfusedKeystrokes  

      3
      0
      Votes
      3
      Posts
      419
      Views

      @lorn-potter Thanks for getting back to me! I'm trying to build this project: https://github.com/herewegoblueno/cs1230-final Just to provide context, this works well when built for Mac. And yes I am importing GL/glew.h myself. Also by the way I've also noticed that the compilers don't recognize the standard libraries like <vector>, <map>, etc (or maybe that's just the static checker? not sure if those will result in compile time errors since I can't build due to glew anyways)
    • UNSOLVED Building to WebAssembly: redefinition of '__glewCreateProgram' as different kind of symbol
      Installation and Deployment • qt creator mac webassembly • • ConfusedKeystrokes  

      1
      0
      Votes
      1
      Posts
      401
      Views

      No one has replied

    • UNSOLVED Issue: Qt Creator can't find custom C++ QtQuick Components, but compilation still works
      QML and Qt Quick • qml qt creator qtquick qt designer qtquickcompiler • • tague  

      2
      0
      Votes
      2
      Posts
      507
      Views

      I've developed a hackish workaround - if you're frustrated by this issue too, this "fix" is ugly but might help in the short-term: I noticed that Qt Creator still recognizes the old qmlRegisterType function calls if they're invoked from main in a project. So naturally, I made a custom compiler step for qmake that generates a header file with all QML_ELEMENT-tagged classes registered in a function. First, make sure you've set up qmltypes in your project as usual - your QML_IMPORT_NAME and all that is set. Add to the bottom of MyProject.pro: type_registrar_unfucker.name = type_registrar_unfucker type_registrar_unfucker.input = TYPE_REGISTRAR_SOURCES type_registrar_unfucker.commands = python3 $$PWD/type_unfuck.py ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} $$QML_IMPORT_NAME $$QML_IMPORT_MAJOR_VERSION type_registrar_unfucker.output = ${QMAKE_FILE_IN_BASE}.h type_registrar_unfucker.clean = ${QMAKE_FILE_IN_BASE}.h type_registrar_unfucker.variable_out = HEADERS QMAKE_EXTRA_COMPILERS += type_registrar_unfucker TYPE_REGISTRAR_SOURCES += $$OUT_PWD/myproject_metatypes.json Add as type_unfuck.py in your source directory: # type unfuck # ----------- # This python script deals with the issue of Qt Creator not being able to recognize element types # registered using 'QML_ELEMENT'. # # It does so by generating a header, 'myprojectname_metatypes.h'. # Include this header ONLY in main.cpp, and then call `registerTypes()` first thing in `main`. # Then, Qt Creator will stop whining. import sys import json source_path = sys.argv[1] dest_path = sys.argv[2] import_name = sys.argv[3] import_major = sys.argv[4] with open(source_path) as f: data = json.load(f) includes = ["QtQml"] types = [] for file in data: includes.append(file["inputFile"]) for type in file["classes"]: if "classInfos" in type and {"name":"QML.Element","value":"auto"} in type["classInfos"]: types.append(type["className"]) with open(dest_path, 'w') as f: for i in includes: f.write(f'#include <{i}>\n') f.write('void registerTypes() {\n') for t in types: f.write(f'\tqmlRegisterType<{t}>("{import_name}", {import_major}, 0, "{t}");\n') f.write('}\n') Then, just add #include <myproject_metatypes.h> to your project's main.cpp and invoke registerTypes(); immediately in your main function. Build your project, then click on Tools -> QML/JS -> Reset Code Model, and Qt Creator should now recognize your custom components correctly.
    • UNSOLVED Releasing exe for 32 bit windows from a 64 bit windows qt creator
      General and Desktop • qt creator windows 10 64bit 32bit deploymet • • Ahsan Niaz  

      2
      0
      Votes
      2
      Posts
      899
      Views

      @Ahsan-Niaz said in Releasing exe for 32 bit windows from a 64 bit windows qt creator: Is it possible to add kits or whatever in my current qt creator. Yes As I already mentioned, I already have a project running perfectly on 64 bit windows. I want to create an exe that should run perfectly on 32 bit windows. Please guide me with what steps I should follow. Thanks Close Qt Creator Run MaintenanceTool.exe Select and install a 32-bit version of Qt from the MaintenanceTool Install a compatible 32-bit compiler If you're using MinGW, install it from the Qt installer If you're using MSVC, install it from Microsoft's website Open your project in Qt Creator and enable your 32-bit kit: https://doc.qt.io/qtcreator/creator-configuring-projects.html Build and deploy your application using your 32-bit kit I don't want to reinstall qt and select the packages or kits because its a headache. You don't need to reinstall Qt. You must install a new version of Qt on top of your existing installation. Recently, I had to run an exe released from 64bit windows qt creator for my client on his 32 bit windows. The bitness of Qt Creator does not matter. What's important is the bitness of your kit. (Qt Creator can manage many versions of Qt, both 32-bit and 64-bit, at the same time)