Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I write an application in Qt that runs with Gnome?

Tags:

qt

gnome

I want to write a program for linux with Qt.

I know KDE is coded in Qt and Gnome isn't. Is it still possible to write a program in Qt for Gnome?

like image 721
uzay95 Avatar asked Sep 25 '10 15:09

uzay95


People also ask

Can Qt apps run on Gnome?

🔗 Qt Wayland By Default On GnomeMake Qt applications to run natively on Gnome Wayland session, using the Qt Wayland platform plugin instead of the XCB plugin which is used for X11/XWayland. Other desktop environments already run natively on Wayland sessions, only Gnome is excluded by Qt.

How do I run a Qt application in Linux?

For console applications, check the Run in terminal check box. To specify the terminal to use on Linux and macOS, select Edit > Preferences > Environment > System. To run with special environment variables set up, select them in the Run Environment section. For more information, see Selecting the Run Environment.


1 Answers

  1. If you write a Qt app, it will run fine under GNOME, provided that the user has the Qt libraries installed (or, and this is often better, you ship them with your app)

  2. Your Qt app will look almost native under GNOME if you make it use QGtkStyle as its widgetstyle (this is done via QApplication::setStyle). This means the app won't look ugly or foreign under GNOME (except for some very small details)

like image 71
Stefan Monov Avatar answered Sep 21 '22 08:09

Stefan Monov