Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
65 views

This question is not a duplicate of undefined reference to `vtable for MainWindow'. As I have mentioned in the following I know how to solve the compile error but my question is how to solve the ...
Mohammad Rahimi's user avatar
0 votes
2 answers
135 views

My QtExample.h with Q_OBJECT has an #ifdef _FEATURE. The #ifdef wraps the class. In Project -> C++ -> Preprocessor -> Preprocessor Definitions, this _FEATURE is specified. When moc.exe runs ...
Mikhail Trash's user avatar
0 votes
0 answers
117 views

I have Qt code that looks like following: class test_gadget { Q_GADGET Q_PROPERTY(QString test MEMBER test) public: QString test; }; class test_gadget2 { Q_GADGET Q_PROPERTY(...
user1558325's user avatar
0 votes
1 answer
99 views

I am trying to compile an object file, for C++/Qt; but I receive the warning below, stating that there is no "Q_OBJECT" in my code. Do I miss something? (my CMakeList.txt contains set(...
katang's user avatar
  • 2,826
0 votes
0 answers
455 views

It is my first post here so please ask for any extra info you need! I have to make this game in Qt with a given source code to start from: world.h & world.cpp Given code class example: Now when I ...
Louis van Hunsel's user avatar
0 votes
0 answers
59 views

I am trying to program a code, which projects a QGridLayout with several QLabels, which contain pictures. When clicking on a QLabel, I want to call a function and "do stuff". Unfortunately I ...
Chrissi's user avatar
0 votes
0 answers
82 views

After some research I found a solution for this error that has happened to a fiew fellow programmers: #include <QtCharts/QChartView> class A { class MyQObject: public QtCharts::QChartView { ...
ugo_capeto's user avatar
0 votes
1 answer
813 views

I would wish to use qt5_wrap_cpp (much faster) than CMake's AUTOMOC feature, but I have a problem. In one of the libraries (other compile fine) some of generated moc files with qt5_wrap_cpp are ...
Piotr Aahahhkja's user avatar
0 votes
1 answer
525 views

Im trying to add a graphical UI for my dungeon crawler game for an university assignment. It's my first time using Qt (and first time asking a question here so sorry if it's incoherent, i'll gladly ...
Arcimboldo's user avatar
0 votes
1 answer
346 views

Qt "private slots:" what is this? AFAIK @Andrew's answer to the question above addresses the point. And @borges mentions the important detail When the method is called via signal/slot ...
KcFnMi's user avatar
  • 6,367
1 vote
0 answers
172 views

As we've worked to move more and more of our codebase to a warnings-as-errors model, one thing I've noticed is that warnings spit out by uic and moc still slip through uncaught. Things like: foo.ui: ...
Parker Coates's user avatar
1 vote
1 answer
111 views

I have the following Makefile: CC=g++ -std=c++17 MYCXXFLAGS=-Werror -Wall clean: rm -f *.o main a.moc: @echo "mocing $@" %.o: %.cpp %.moc @echo "all prerequisites $^&...
silentspring's user avatar
-2 votes
2 answers
218 views

https://www.dvratil.cz/2019/11/q-private-slot-with-new-connect-syntax/ #include <QPushButton> #include <memory> class MyButtonPrivate; class MyButton : public QPushButton { Q_OBJECT ...
xiaosan's user avatar
7 votes
1 answer
2k views

my configuration is: ubuntu 21.04 gcc 11 qt 5.15.2 and error message like this: AutoMoc subprocess error ------------------------ The moc process failed to compile "SRC:/src/Layers/ViewLayer/...
Alex Luya's user avatar
  • 10.1k
1 vote
1 answer
787 views

I've just started using MSVC with Qt. While compiling a moc_, MSCV is generating a warning - "warning C4251: 'QBasicMutex::d_ptr': class 'QBasicAtomicPointer' needs to have dll-interface to be ...
Pete D.'s user avatar
  • 177
0 votes
0 answers
55 views

I've currently studied QT and have to face the problem of passing member function pointer to SLOT macro. Here is the part of code: main.cpp: #include <iostream> #include <QApplication> #...
Gavluck Andrey's user avatar
1 vote
0 answers
659 views

We try to mov to the latest Qt 5 LTSB (5.15.2) from our working base Qt 5.12.8 but ran into MOC errors: The moc process failed to compile    "SRC:GenericForm.h" into    "SRC:...
Marco Esser's user avatar
1 vote
1 answer
1k views

What is the code I am trying to learn Qt c++ with the book learn Qt 5. This is the follow along code. The particular section that is giving the error is for writing a preset welcome message. The Qml ...
Sina Sartip's user avatar
0 votes
1 answer
433 views

I have a Makefile.am like the following to compile MOC files for Qt using automake. bin_PROGRAMS = test test_qtheaders = window.h test_moc_sources = $(test_qtheaders:.h=_moc.cpp) test_SOURCES = ...
Ender's user avatar
  • 1,914
0 votes
1 answer
373 views

I made simple game to shot rectangle(class Bullet) from other rectangle(class MyRect). I have error undefined reference to 'vtable for bullet'. I have written that is connected with Q_OBJECT and moc.I ...
Paweł's user avatar
  • 1
2 votes
1 answer
2k views

I have a Qt/C++ project that uses Boost library, and I see Boost headers are included like this: #ifndef Q_MOC_RUN #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/...
Glinka's user avatar
  • 533
0 votes
1 answer
586 views

I have some classes defined only using a headers file that inherits the QObject class and uses the Q_OBJECT macro. They are placed in a certain folder on my PC. I want to include these classes in my ...
Lorenzo Aldrighetti's user avatar
0 votes
1 answer
390 views

I am building a Qt c++ app in a Docker on Travis. I am trying to update the base Docker image from Cosmic to Disco. I did these updates: Travis dist: Trusty => Xenial Docker image: Cosmic => Disco ...
Denis Rouzaud's user avatar
1 vote
1 answer
349 views

I'm trying to manually calling repc on my .rep files then running moc on the header output files. repc runs successfully, but moc randomly complains about a parse error at '(' after a Q_CLASSINFO ...
bardao's user avatar
  • 964
2 votes
1 answer
2k views

I currently have a project set up like this: - project/ --- include/ --- src/ --- qml/ --- CMakeLists.txt --- qml.qrc And a CMakeLists.txt like this: cmake_minimum_required(VERSION 3.1) ...
iHowell's user avatar
  • 2,465

1
2 3 4 5