Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
fntest
README.md
fn_test.pro
pubnub.cpp
pubnub.doxygen
pubnub.hpp
pubnub.pro
pubnub_config.h
pubnub_gui.pro
pubnub_internal.h
pubnub_qt.cpp
pubnub_qt.h
pubnub_qt_gui_sample.cpp
pubnub_qt_gui_sample.h
pubnub_qt_sample.cpp
pubnub_qt_sample.h

README.md

Pubnub C-core for Qt

This is a part of C-core for the Qt. It is tested to work only with Qt5. It builds on Qt4, too, but there are some run-time issues, i.e. publishing some JSON object fails.

Unlike the C++ wrapper, which wraps a "full featured" C-core platform, this is a "Qt-native C-core" of sorts. It provides it's own (Qt) API, while using as much of C-core modules as posible.

There are sample projects:

  • pubnub.pro, which will build a Qt command line application which executes most of the Pubnub transactions/operations - similar to the pubnub_sync_sample or pubnub_callback_sample from C-core.
  • pubnub_gui.pro, which will build a Qt GUI application, a "minimalistic" Pubnub console

To build the samples, run qmake pubnub.pro or qmake pubnub_gui.pro, and then make or, on Windows if using MSVC, nmake or jom.

If you have both Qt5 and Qt4 on your machine, be sure to use the Qt5 tools, for which purpose you may utilize the qtchooser app. For example, do:

qtchooser -run-tool=qmake -qt=5 pubnub.pro

That will create the Makefile that will use Qt5 tools.

Of course, you may also use the provided Qt projects in Qt Creator.

You can’t perform that action at this time.