Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What does Qt uses to render GUI ?
Forum Updated to NodeBB v4.3 + New Features

What does Qt uses to render GUI ?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    Is it that qtcore and qtgui have been written using X11 API or they use GTK+ framework at the backend.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      They use X11 directly (or, in Qt 5, Wayland) on the systems where that is the window system. GTK+ is a competing framework. On Windows, Mac OS, and the many other platforms, Qt obviously uses other systems.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on last edited by
        #3

        1-What is difference b/w X11 and wayland. Is wayland better? And you mean to say that Qt gui is different than GTK+ framework. But they look exactly similar, i mean widgets.

        2- X11 is the default windowing system for Linux, so does this mean Qt5 apps will have additional dependency of downloading and installing wayland. Does Qt-Wayland has similar look of widgets as GTK+ as GTK+ uses X11, or they will look different.
        Perhaps i asked too many questions!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          Qt doesn't wrap up other toolkits' widgets. It generates and uses its own widgets by drawing at the lowest level of the graphics system of whatever platform it is running on. The widgets are styled by Qt's QStyle mechanism.

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            Note that there is a Qt GTK style, to make Qt applications look like GTK applications. I believe there is a similar idea the other way around, a GTK style that mimics the default Qt style.

            For information about Wayland, you could "start":http://en.wikipedia.org/wiki/Wayland_(display_server_protocol) at wikipedia.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dbzhang800
              wrote on last edited by
              #6

              Old X11 backend (aka. Xlib) has been dropped in Qt5, the default backend for linux is XCB, and wayland can be selected if your OS support it.

              Both Qt and GTK+ are ui toolkit, they are independent. GTK is now porting to wayland too.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved