How to develop apps for Wayland without using a widget toolkit? - linux

I would like to know how to develop an application without using widgets toolkits like GTK or QT. Searching I found that for Xorg it is possible using Xlib. But how to do this for Wayland? Is there an Xlib equivalent library for Wayland? Where should I start my studies?

Using libwayland-client.
The following are some materials for reference:
https://github.com/emersion/hello-wayland
https://wayland-book.com/
https://www.youtube.com/watch?v=KbryyNrMYl4

Related

How to use Python GUI online?

How can i use online python IDEs to work with GUI code. I am working in Kivy framework to build GUI.
I have tried Codeenvy , and some other online IDEs. But i couldnt able work with GUI there.
Kivy is a graphical framework for the desktop, using SDL2 as a backend in most cases. It has no way to run in your browser.

Using qtmotifextension with QT5

Currently I'm using qtmotifextension to connect QT world with old Motif UI on X11 Linux station.
I'm trying to update towards QT5 but X11processEvent from QApplication has been removed.
Is there an updated qtmotifextension from old qt-solutions available or is there any way to have X11processEvent from QT5?
Seems that qtmotifextension is no more maintained... You have to stick to QT4 or re-implement this extension....

Custom GUI design in linux

I was wondering if it has some manner to design more beautiful, personalized GUIs. All apps I've seen so far are Gtk based, which have the "linux face". It's not ugly, but what if I want my own design into my app?
Has linux a framework such a Windows Presentation Foundation?
Try QT Framework. With the advent of Ubuntu 12.04 -- they are shifting from GTK and Gnome based application to QT based GUI's. QT has more beautiful and personalized GUI's.
http://qt.nokia.com/products/
The main GUI frameworks are Qt and GTK+. If you don't like the looks of GTK+ programs it is probably easier to define a custom GTK+ theme than to write a new program from scratch. You can also define custom widgets which looks and works exactly as you want them to. There is also a more low-level (and cross platform) framework called SDL. There you will have to do everything from scratch. It basically only provides functions to draw to the screen and read keyboard and mouse events. But you can create a program which looks exactly the way you want with SDL. Because of that, and because it is fast, SDL is often used for games.
wxWidgets is another great cross-platform framework.

What's the easiest way to create modern GUI applications in GNU/Linux world?

In Windows creating perfect-looking GUI applications is just a piece of cake with VisualC# and WinForms. Is there something of this ease and power in GNU/Linux world? Gtk# looks too arcane compared to ordinary VisualStudio WinForms designer.
You could try Qt
https://stackoverflow.com/questions/235579/good-books-on-qt-and-boost-libraries
If you want to drag the widgets around, you could use Glade to create user interface, and save it in GtkBuilder project, then load it with GTK+ bindings in your programming language.
It's pretty easy and you have those tutorials in Glade's website.
By the way, Linux is just the kernel of the system, although I think all modern GNU/Linux systems with graphical support are equipped with X. However it still depends on the specific library. Generally GNOME and KDE use GTK+ and Qt respectively.
Or you can use multi-platform language. If you have experiences with C# / VisualC# then developing a Java application wouldn't be so hard. C# and Java are really similar languages based on similar principles.
In Java world you have a few GUI frameworks that you can use : Swing, Standard Widget Toolkit (eclipse), JavaFx

MFC like easy to use tool for Linux

When I used to write test tools in Windows, I use MFC for creating the front-end GUI. This made development of GUI development very fast, and I always used to concentrate on the back-end. Recently I moved to the console based Linux-world. Where most of the things are just console based.
My question: Is there any easy to use equivalent of MFC in Linux?
If you are used to MFC, you will LOVE QT.
http://www.qtsoftware.com/products/
There are a lot of alternatives.
I like wxWidgets. Others will recommend Qt.
Another option is to use Glade to build GTK+ or GNOME applications.
I've never used MFC, but supposedly the wxWidgets toolkit is somewhat MFC-like. Though I prefer Qt over wxWidgets as IMHO the API is nicer, more complete and better documented, and the Qt GUI builder is pretty good.
A nice thing with both Qt and wxWidgets BTW is that they are both cross-platform toolkits; they work on Linux/Unix, Windows, OS X, and maybe other platforms as well.
There's a a huge omission here! gtkmm, the official C++ binding to GTK+, is arguably the modern C++ GUI kit, since it goes out of its way to really use and evolve with the language. For those learning modern C++, it's the best counterpart to the stdlib. It grabbed and kept my interest, where no other GUI lib could, due to its modern and clear API. And it'll work wherever GTK+ does - a tonne of places. I'm glad to have built my first ever (and not trivial!) GUI project around it. It also provides sigc++, which I imagine is really powerful for custom signalling/event systems. Disclaimer: I'm just a self-taught user.

Resources