Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
0 answers
66 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 ...
0 votes
1 answer
275 views

I have a project written in Visual Studio 2022 c++ with Qt5.15.2 (x64). It comiles and works just fine. During compilation I get a warning for each widget-derived-class in my project. Moc'ing ...
0 votes
2 answers
145 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 ...
0 votes
1 answer
50 views

I am creating a Makefile to build an application with Qt using moc. MOC_HEADERS=include/test.hpp include/test/test.hpp MOC_SRCS=$(patsubst include/%.hpp,build/moc/moc_%.cpp,${MOC_HEADERS}) The first ...
0 votes
0 answers
120 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(...
2 votes
1 answer
280 views

EDIT My CMake file looks like this: cmake_minimum_required(VERSION 3.16) project(testqt VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOMOC ON) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 6.4 ...
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,824
0 votes
1 answer
133 views

I created project in QT designer. In designer I use my own widget class DockWidget : public QDockWidget But during building in linux server I got an error dockwidget.h: No such file or directory ...
0 votes
0 answers
463 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 ...
0 votes
1 answer
123 views

If I try to compile a simple Qt project, I receive 6 linking errors: mocs_compilation_Release.obj : error LNK2005: "private: static void __cdecl MainWindow::qt_static_metacall(class QObject *,...
0 votes
0 answers
63 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
1 answer
248 views

I'm working on a CMake project that uses Qt. To automatically generate MOC and UI files, I've set the CMAKE_AUTOMOC and CMAKE_AUTOUIC options to ON in my CMakeLists file. As a result, Visual Studio ...
0 votes
0 answers
89 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
334 views

I'm currently attempted to use Qt project in the way that cmake compile project. I worked with Qt creator 4.11.1. I make new exercise in which the way of compilation is selected with cmake. It's most ...
0 votes
1 answer
828 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 ...

15 30 50 per page
1
2 3 4 5
...
15

AltStyle によって変換されたページ (->オリジナル) /