Migration to Qt framework

From OpenFLUID
Jump to: navigation, search

Equivalent functionalities

The equivalences below are for Qt 4.8


GTKmm

GTKmm Qt Comments
Gtk::About does not exist easy to implement (using an ui file)
Gtk::Action QAction
Gtk::Assistant QWizard
Gtk::Button QPushButton
Gtk::CheckButton QCheckButton
Gtk::ComboBox QComboBox
Gtk::Dialog and similar QDialog and similar
Gtk::Entry QLineEdit
Gtk::FileChooserButton does not exist should be easy to implement
Gtk::HBox QHBoxLayout
Gtk::Image QLabel
Gtk::Label QLabel
Gtk::ListView QListView, QListWidget
Gtk::Menu QMenu
Gtk::MenuBar QMenuBar
Gtk::Notebook QTabWidget
Gtk::MessageDialog QMessageBox
Gtk::ProgressBar QProgressBar
Gtk::RadioButton QRadioButton
Gtk::Scale QSlider
Gtk::SpinButton QSpinBox
Gtk::StatusBar QStatusBar
Gtk::TextBuffer QTextDocument
Gtk::Toolbar QToolBar
Gtk::TreeView QTreeView, QTreeWidget
Gtk::VBox QVBoxLayout
Gtk::Window QMainWindow or QWidget


TO BE COMPLETED

GLibmm

GLibmm Qt Comments
GLib::Module QLibrary, QPluginLoader
Glib::get_home_dir(), Glib::get_temp_dir(), ... QStandardPaths
Glib::spawn_xxx QProcess, QDesktopServices::openUrl()

TO BE COMPLETED

Giomm

Giomm Qt Comments
Gio::File::monitor_directory QFileSystemWatcher

TO BE COMPLETED


libCURL

libCURL Qt or other Comments
network functionalities to download files QtNetwork module
or
boost::asio

TO BE COMPLETED


libXML2

libXML2 Qt Comments
DOM handling functions QDomDocument, QDomElement, QDomNode, ...
XML stream reading functions QXmlStreamReader
XML stream writing functions QXmlStreamWriter

TO BE COMPLETED


Boost.filesystem

Boost.Filesystem Qt Comments
boost::filesystem::path QFileInfo, QDir, ...


Boost.regex

Boost.Regex Qt Comments

TO BE COMPLETED


Boost.iostreams

Boost.Regex Qt Comments

TO BE COMPLETED


Boost.program_options

Qt does not seem to have functionnalities to parse command line arguments

Questions/Answers

What is the preferred approach for static integration of ui files in C++? 

According to the article on Qt 4.8 doc [1], the preferred way to statically use a ui file in C++ is the the single inheritance approach using a pointer member variable [2]


Is there naming conventions for signals and slots?

Qt names signals and slots the following way:
signal: somethingHappened()
slot: doSomething()




Resources

Qt:


Mapping with Qt:




Progression

The remaining open tickets are available in issues tracker on GitHub

Screenshots

Click on thumbnails for larger screenshots sizes

October 10th, 2013


November 22th, 2013