Can someone guide me on how to use OpenDDS with Qt6? I need to make a Chatroom application on Qt with the help of OpenDDS and I can't find any learning material for that.
OpenDDS has a demo used to demonstrate interoperability with other DDS implementations that uses Qt that could serve as an example. It's Qt 5 though, we haven't updated it to Qt 6 yet. There's also some more information about OpenDDS and Qt listed here.
Related
This is possible a duplicate, notheless old questions might be outdated.
I know the basic logging principles of Qt, using qDebug() << "error"
and I know that with Qt 5.2 categories where introduced (example found here: https://evileg.com/en/post/154/)
But I do not see that Qt provides a framework ready to use.
I would like to have a file write based logger, thread save, that is compatible with log4net (or log4j). Even if not with the output of log4net it should be stable and proven to work.
I found log4qt
https://sourceforge.net/projects/log4qt/ But the source does not even include a make file or anything to make it. Also the code is from 2009 and very likely outdated.
I also found the log4cxx, but that is based on Linux compile tools and I could not find out how to make it using ming32 on windows. Since I dislike to invest hours to even compile a framework I rather not want to use this framework.
Is there anything more modern, up to date for Qt, usable on windows?
I want to integrate DirectFB with Qt. Which Qt class will be useful for it in Qt 4.8?
There is no public class as a middleware component dedicated to DirectFB. There is a plugin, however, that you can enable in the following way:
./configure -plugin-gfx-directfb
or
./configure -qt-gfx-directfb
Note that you would better use Qt Embedded for that. Please read the following documentation for details.
That being said, I suggest to wipe Qt 4 out of your mind, and concentrate on Qt 5, which is much neater in this regard. There is a proper directfb QPA plugin in there, etc.
I've got a project that needs to use the gtkmm 2.4 API, however documentation for it has been really hard to find. The official gtkmm site has the following statement:
Versions for the older gtkmm 2 API are also available.
However I can't seem to find it anywhere. Anyone know of a place good place to get documentation?
See the following links:
gtkmm: gtkmm Reference Manual
Programming with gtkmm 2.24.2
Gtk+ API Documentation (both, GTK+ 2 and 3
Hth!
I'm Working on a small project and i need to work with OpenGL + QT
I'm Newbie in both of them. So i need a good tutorial that illustrates how to work with them each other not individually
is it better to work OpenGL on QT Creator or use QT Visual Studio Plug-in?
You'll be using QGLWidget a lot! Here you go:
http://doc.qt.io/qt-5/examples-widgets-opengl.html
Of all those, maybe this is the best one to start: Hello GL Example. If you prefer using Qt Quick instead of Qt Widgets, check these posts:
Integrating custom OpenGL rendering with Qt Quick via QQuickFramebufferObject
Scene Graph - OpenGL Under QML
If you want a higher-level 3D API than OpenGL, as o Qt 5.7 Qt 3D became stable.
As for the IDE I suggest using Qt Creator. It works out of the box on Windows and the syntax highlighting and autocomplete are comparable to Visual Studio.
You have several different options for using OpenGL in Qt. It has changed a lot over the years. For an introduction that should cover all the basic info you need to start look at this post. The old style Qt OpenGL classes and functions were called QGLxx but are now called QOpenGLxx and have been moved to the QtGUI module to start with.
Many of the simple OpenGL examples with Qt (including the QOpenGLWindow example shipped with Qt) use the old style of OpenGL that shouldn't be used any longer. Here is a tutorial that has updated the QOpenGLWindow example to modern OpenGL (3+). It is the simplest, most up to date example I have come across.
I second Qt Creator, especially for learning. It has much better integration with the Qt help files than Visual Studio does. If you are considering switching between IDEs I would also recommend building with CMake. CMake is very similar to the built in qmake of Qt Creator but it can work just as good with Visual Studio or other IDEs. I have been running some examples for learning purposes in both Visual Studio and Qt Creator with CMake. Here is a simple CMake example with Qt. For my purposes I still use the Visual Studio compiler when working in Qt Creator though.
There're some examples of how to use Open GL with QT in the SDK. You can open these examples in QT Creator if you want. To answer the second question, I find QT Creator much faster and more pleasant to use than Visual Studio but YMMV.
I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx ,
Are there anyother stable frameworks for modularization in C++ ?
The authors of the open source Portable Components library (POCO) have also developed a modular framework based on OSGI called OSP or Open Service Platform. http://www.appinf.com/en/products/osp.html. It's not open source however.
I found this write-up which gives a status as of April 2012. Definitely worth reviewing
OSGi and C++ frameworks overview.
There is also BlueBerry http://www.blueberry-project.org which implements a component based framework inspired by OSGi. It also comes with an application framework similar to the Eclipse RCP.
A rewrite of the BlueBerry core can be found in the CTK PluginFramework library (based on Qt Core): Introduction, GitHub Code .
The OSGi4Cpp tries to implement the OSGi specification in C++.
I've never seen a solution to the whole problem, but I implemented something similar using Qt plugins.
The part Qt did nicely (that C++ by itself doesn't implement) was handling C++ OO interfaces in dynamically loadable modules. Because of C++ name-mangling being non-standard, usually DLLs don't have C++ interfaces, only C interfaces. Qt did it with it's meta-object system, and it worked really cleanly for me.
Checkout cppmicroservices. It is actively developed and provides a reasonable starting point for creating an SOA based dynamic services in C++.
Apache Celix is an OSGi implementation for C and C++
http://celix.apache.org/