Questions tagged [qt-creator]

1

votes
0

answer
11

Views

TableView does not load the QSqlQueryModel into it

I'm using a tableView to display some information from a table in my database via a QSqlQueryModel. It connects it creates the actual table, it creates the rows and collumns and labels them accordingly, when i use model->rowCount(); in qDebugg() it shows me the proper number of rows, same for column...
Rares Andrei
1

votes
1

answer
4.9k

Views

How to check whether value in QTable widget changed

HI, I have some data there in my tablewidget and it is editable. My intention is to take data from edited row and column. IS it possible. Is it possible to check the edited row and column. Any specific signal is there?
Sijith
1

votes
1

answer
550

Views

How to set Value Axis Label Format on QML from milliseconds to mm:ss?

Background I am using QtCreator and I have a file called myScopeView.qml, which represents a scope view similar to the example provided here. In myScopeView.qml, there is a ChartView that is updated every second with a timer so the plot changes values on X axis and Y axis. X axis represents time exp...
titiro89
1

votes
1

answer
247

Views

Qt Creator does not show locals while debugging with gdb on Windows

I've recently run into the issue of not being able to use the debug view of Qt Creator. No Local Variables would show up and Expression Evaluators only work to some extent. I've created this tiny C program to demonstrate the issue, though it happened in a standard Qt App as well. #include int main(...
Binary
1

votes
0

answer
227

Views

Qt Creator: run unit test automatically before main project

I have some widget application project on Qt 5.9.3. Now for a Unit testing I've created a new root 'subdir' project, which contains my main application project and the new Qt test project: Notice - how I create the root solution folder with an existing project: In Qt creator: File -> New File or Pro...
Vladimir Bershov
1

votes
1

answer
60

Views

Can not remote Run QT Camera Example on i.Mx6Q

This is the application output, when I run app: sh: /root/camera: not found Application finished with exit code 127. How to fix this problem? Thanks Environment I'm using Buildroot 'imx6-sabresd_qt5_defconfig' and adding 'openssh', 'gdb' And the following is what I set up Qt Creator for i.Mx6Q: Tool...
Julia Ding
1

votes
2

answer
252

Views

Specifying GDB start script on QtCreator command line

We're using QtCreator 3.2.1 to analyse core dumps on Linux (Debian Jessie). Currently we load it up manually via the menu and 'Load Core File' dialog, which allows us to specify a GDB startup script which we use to set up the source code search paths. The paths, and hence the startup script, depen...
Jeremy
1

votes
0

answer
57

Views

Error in opencv using qt in imread function (Linux)

My problem is that i have just install qtcreator and opencv. I try to make simple opencv application to read an image but i am stuck with below error; any one can help please, error: undefined reference to `QFutureInterfaceBase::setThreadPool(QThreadPool*)' mainwindow.cpp #include 'mainwindow.h' #...
Abdallah Mohammed
1

votes
1

answer
73

Views

boost MPL::vector not recognized and Meta State Machine (MSM) transition table not defined

I'm trying to learn boost's meta state machine (MSM) library. Following the simple state machine example in http://redboltz.wikidot.com/simple-state-machine, I face some problems: I have a problem in defining the state machine's 'transition table' using boost::mpl::vector. // Transition table struc...
qwa
1

votes
0

answer
169

Views

How can you enable Clang Format for .c files in Qt creator?

I would like to use the automatic format on save with Clang format in qt creator for my C projects. I tested the automatic format on save for my C++ projects and it works fine. I also could apply the formatter manually. However, how can I enable this feature to work automatically?
Imago
1

votes
0

answer
195

Views

Disable linux mouse wheel click paste in QtCreator

The hot desks in my company, have these mice that 50% of the time I scroll the wheel it produces a middle button click. In linux this is a paste. So when I'm scrolling up and down some source code in QtCreator I tend to unintentionally paste around pieces of text. Even if I'm painfully aware of this...
martinako
1

votes
1

answer
63

Views

Qt - How to get the text from an item when dragging and dropping in a QGraphicScene?

I'am new to Qt Creator and coding in general and I'am trying to create an application where I have a list of color options and an area where I can drag these options and create a graphic item with the color I chose, here's the code: I created a QListWidget and added two QListWidgetItem itens for now...
Gabriel_Br
1

votes
0

answer
351

Views

How do I solve the warning 'JIT is disabled for QML. Property bindings and animations will be very slow.' in QT Creator

How do I solve the below warning in QT creator. JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform. I am running the QT application in iPad. As per the url says I have removed the Q_OS_IOS macro...
Vineesh TP
1

votes
1

answer
72

Views

Qt Creator Debugger Log Window unnecessarily escapes many characters makes output distracting

Qt Creator Debugger Log Window(Window > Views > Debugger Log) unnecessarily escapes many characters and makes output distracting, how can we fix it? Please see the screenshot. In the right pane: \n \t and \\ , I don't want them.
Sumit
1

votes
0

answer
238

Views

LNK1181: cannot open input file 'release\main.obj' - when rebuilding QT application

I am a newbie to the QT application. I got some QT based project from my vendor. The sample application is built on QT 5.8.0 msvc2013 32 bit/64 bit, But I don't have msvc 2013 instead I have msvc 2017 installed on my pc. When Rebuilding (after Qmake) the received code I am getting below issue. Can a...
Abu Muhammad
1

votes
2

answer
46

Views

Is there anyway to stop MVSC from creating release and debug folders when using form QtCreator?

Whenever I set my build options in Qt for a specific folder and I compile using MVSC it creates a release and debug folder and puts the output exe file inside that folder. If I compile in linux it usually just puts the final executable file in the folder that I specify. Is there a way to get this la...
aarelovich
1

votes
1

answer
114

Views

Remove compiler optimizations and enable pdb files in release

I have a qt pro file, in which I want to disable optimizations, because I see some unreasonable crashes. Therefore I use the options: QMAKE_CXXFLAGS -= -O1 QMAKE_CXXFLAGS -= -O2 QMAKE_CXXFLAGS -= -O What is more, I need to produce pdb files, while building in release mode, to trace any crush afterwo...
epi4
1

votes
0

answer
83

Views

Qt Creator: Cannot rename file

Any ideas why Rename... is disabled when a right-click on a file in the project view? This is a CMake project: This is Qt Creator 4.5.2 on Ubuntu.
juzzlin
1

votes
0

answer
117

Views

use library crossplatform: DWORD is unsigned int(Linux) unsigned long (Windows)

i wrote a small Qt application under Linux that accesses some hardware. To do that i have a 3rd party library from the vendor with simple c-funktions. Under Linux the 3rd party header file defines a DWORD as unsigned int but when i compile the application with Qt Creator (MinGW compiler) on windows...
1

votes
0

answer
146

Views

Import dll in different QT versions

I was using an external dll file in my project and now upgraded my QT version from Qt5.5.1 to 5.10.1. Now I have issues using a dll File. Is there a chance to reuse the same dll in newer QT-Versions? Are dll files created for specific QT versions? I have run qmlplugindump.exe from Qt5.5.1 binaries a...
F-Kae
1

votes
0

answer
103

Views

“Qt Embedded” fonts in Qt Creator

When selecting a font for a widget in Qt Creator 4.6.2, some of the fonts have a postfix [Qt embedded] in their name. E.g. DejaVu Sans Mono [Qt Embedded]. This is a snapshot from the Qt Creator property editor: What does [Qt Embedded] mean exactly?
Silicomancer
1

votes
0

answer
49

Views

QtCreator highlight for alternative operators: “not”, “and” and “or” in C++ code?

I'm using QtCreator 4.6.2 for C++ code, it is possible to get highlight for 'not', 'and' and 'or' keywords?
1

votes
0

answer
582

Views

Semantic issues showed up on QT Creator 4.7.0

After updating Qt Creator from 4.6.0 (built on mar 27 2018) to 4.7.0 (built on july 17 2018), several semantic issues showed up. For example, the code below will be fine. //main QObject::connect(&p1, SIGNAL(mysignal), &p2, SLOT(myslot)), Qt::QueuedConnection) || // other file.hpp class p2:...
vincedjango
1

votes
0

answer
32

Views

Is a configuration of clang QtC 4.7 checks per config file possible?

QtC 4.7 offers the inline CLANG code checks, as shown in the screenshots. I can configure those from options/C++. But I wonder if I can have a config file which I can commit (git) so everyone in the team is using the same checks. Is that possible (e.g. similar to Artistic style where I can use a fil...
Horst Walter
1

votes
0

answer
129

Views

Where should be the QtCreator plugins path?

After installing Qt.Creator I got the following error: This application failed to start because it could not find or load the Qt platform plugin 'windows' in ''. Reading the error message it's look like Qt don't know where search the platform plugin. So my question is how can I help QtCreator to fo...
APianist
1

votes
0

answer
284

Views

Qt Creator + CMake + Clang

I am trying to use Qt Creator to work on a non-Qt C++ program, built using CMake with Clang as the compiler. Platform is Windows 10 64. All versions are most recent at time of this post. After manually downloading Jom and adding it to the path, I get this error trying to build a Hello World program:...
Alex Court
1

votes
0

answer
33

Views

Overlapped letters in QtCreator doc

I upgraded OS from Fedora Core 25 to FC26. After the upgrade, help system of Qt Creator does not shown correctly. Some part of documentation is overlapped and hard to read. Changing font style and font size does not help. Here is screenshot. How I can correct it?
Nasanbat Namsrai
1

votes
0

answer
124

Views

Windows SDK 8.1 and 10 are not installing correctly

CMake was runing from QtCreator, error message was: LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' Then i installed win10 SDK, so i got next message - some unreadable mess (encoding problem). I found out that problem was because rc.exe was missing, so i deleted win10 SDK and installed win8...
Nikita Kiselevskiy
1

votes
1

answer
53

Views

How to make the autocompleter recognize an auto type variable when a statically cast pointer is assigned to it?

Details Recently I have updated to Qt 5.11.2. As part of the release Qt Creator 4.7.1 was installed. It comes with a real-time code check, which I do not find useful and have removed by unchecking the ClangCodeModel under Help -> Plugins. This is the only customization I have done to Qt Creator. Pro...
scopchanov
1

votes
0

answer
31

Views

Why these Issues when installing Qt Creator afresh?

After a couple of days of trying to get Qt Creator to build a Windows GUI project I received from a colleague, I decided to remove my previous installation and re-install Qt from a clean slate. Using the latest 'Community' version installer from the Qt website, I selected the Qt toolchain version 5....
ysap
1

votes
0

answer
48

Views

How to add GPAC(MP4Box) library to Qt project?

I am using Qt 5.11 and Mac OS (High Sierra). Trying to add GPAC (MP4Box), I compile the library downloaded from Git and then include its path in the .pro file like this: LIBS += -L'/Users/stellar/Desktop/gpac/bin/gcc' LIBS += /Users/stellar/Desktop/gpac/include Then I include a header file in ma...
Ketan Chauhan
1

votes
0

answer
118

Views

Getting following Cmake error while building project using qt-creator

I was building the following project: https://github.com/apertus-open-source-cinema/opencine. By use Qt 5.8 version and while building the project, I am facing this strange issue: cannot find source file :/home/user/document/error in tried extension .c .C .c++ .cc .cpp .cxx .m .M cmakeList.txt. .mm...
Zaid
1

votes
0

answer
363

Views

How to make Qt creator automatically create kits for Android tool chains

I'm trying to configure Qt 5.11.2 (Qt creator 4.7.1) on a Windows 7 Pro machine to build applications for ARM Android v8. I think I've installed the Android SDK and NDK correctly, but Qt creator seems to be missing the tool chain for Android. I've read several other posts that suggest Qt Creator is...
R. Perez
1

votes
1

answer
106

Views

getting lnk2019 error when compile a program using qt creator and eigen library

I try to compile a project in qt and after i link the necessary libs i ghet the fallowing linking error : labelbox.obj:-1: error: LNK2019: unresolved external symbol 'public: void __thiscall LabelImage::setAxis(class Eigen::Matrix)' ([email protected]@@[email protected][email protected][email protected]@@@Z) re...
Silviu Petrut
1

votes
0

answer
597

Views

QML module not found

I copied a project to another directory (forked it) and now I always get QML module not found (QtQuick.Controls). , and similar. The original project does not show any errors. I cleaned and rebuilt everything but that didn't solve it. The project compiles and runs perfectly, so QtCreator is somehow...
Nulik
1

votes
1

answer
58

Views

Qt Test: error symbol(s) not found when instantiating object in test project

I'm sure I'm just missing something in my original class (conferenceview), but I can't wrap my head around exactly what is missing. When I attempt to build my tst_conferencepage.cpp file, which includes my conferenceview class, I get an error message regarding symbol(s) not found for architecture x8...
mitchdotdev
1

votes
2

answer
708

Views

How to solve module “”QtQuick.Controls“ version 2.0 is not installed” on mac

I've been getting the error 'module 'QtQuick.Controls' version 2.0 is not installed' on Qt Creator 5.6.13, so i upgraded to 5.11.2 and i'm still getting it. Here's the part causing it: import QtQuick.Controls 2.0 Thank you for your help.
imad kimouche
1

votes
1

answer
69

Views

How to set C++ standard in QtCreator with ClangCodeModel plugin?

Sorry if this is a dumb question, but I have already tried almost everything and am banging my head against a wall right now.. The problem is, QtCreator 4.8.0-beta for Windows with Clang Code Model plugin parses my project as C++98 whereas in fact it is C++17. However specifying the standard versio...
Alex Jenter
1

votes
2

answer
81

Views

Adding a Homebrew-installed Qt to Qt Creator on a MAC

I installed Qt5 and Qt Creator via homebrew. Since they were installed independently of each other, Qt wasn't automatically added to the list of known Qt installations in Qt Creator. I thought adding an installation would be simple, but... Since homebrew installs all casks under /usr/local/, which i...
TheSodesa
1

votes
0

answer
108

Views

Qt Creator: Supplying symbols to the Clang Code Model

I am using the new Clang Code Model in Qt Creator 4.8 to highlight violations in the editor. Recently I introduced some experimental C++20 functions in my code. These functions are integrated using a GCC header () that introduces three intrinsics that are unknown to clang: __builtin_FILE() __builtin...
Silicomancer

View additional questions