Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Does Qt Apps' appearance change between different Platform Plugins?
Forum Updated to NodeBB v4.3 + New Features

Does Qt Apps' appearance change between different Platform Plugins?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 1.1k Views 3 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.
  • R Offline
    R Offline
    rrd0
    wrote on last edited by rrd0
    #1

    When I run the same Qt app with different -platform options (xcb and eglfs), it looks totally different. The xcb version looks much prettier than eglfs one. It looks like eglfs ignores some of the styles and shows a very simplified version of the application. Also, in eglfs, drag operations don't show the pixmap that represent the operation, while xcb do.

    Is this normal or I'm missing something?

    JKSHJ 1 Reply Last reply
    0
    • R rrd0

      When I run the same Qt app with different -platform options (xcb and eglfs), it looks totally different. The xcb version looks much prettier than eglfs one. It looks like eglfs ignores some of the styles and shows a very simplified version of the application. Also, in eglfs, drag operations don't show the pixmap that represent the operation, while xcb do.

      Is this normal or I'm missing something?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      @rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:

      Is this normal or I'm missing something?

      It's normal.

      Here's an obvious example: An traditional app on the xcb platform (Linux) is expected to look different from the same app built for windows (Windows) platform.

      The xcb version looks much prettier than eglfs one. It looks like eglfs ignores some of the styles and shows a very simplified version of the application. Also, in eglfs, drag operations don't show the pixmap that represent the operation, while xcb do.

      EGL = Embedded-system Graphics Library

      Embedded systems typically have less processing power than desktop systems, and they might be expected to last a long time on a single battery charge. So, they tend to use simpler graphics for efficiency.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2
      • R Offline
        R Offline
        rrd0
        wrote on last edited by rrd0
        #3

        Is there something I can do to make eglfs look better? If not, is there an alternative to eglfs? I need something like eglfs, that doesn't need a window system but run GUI applications.

        JKSHJ 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Define what you mean by look better. What are you expecting ? What are you getting ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          0
          • R rrd0

            Is there something I can do to make eglfs look better? If not, is there an alternative to eglfs? I need something like eglfs, that doesn't need a window system but run GUI applications.

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by JKSH
            #5

            @rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:

            Is there something I can do to make eglfs look better? If not, is there an alternative to eglfs? I need something like eglfs, that doesn't need a window system but run GUI applications.

            Try applying the Fusion style to your whole application and see if you like that. https://doc.qt.io/qt-5/qapplication.html#setStyle

            If not, please describe in more detail what kind of device it is, what constraints you have, how you're creating the GUI (widgets? Qt Quick? OpenGL?), etc.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            R 1 Reply Last reply
            3
            • SGaistS SGaist

              Hi,

              Define what you mean by look better. What are you expecting ? What are you getting ?

              R Offline
              R Offline
              rrd0
              wrote on last edited by
              #6

              @SGaist

              Here are some images of what I'm expecting (what I have on xcb platform) and what I'm getting on eglfs platform.

              • You'll see rounded buttons on xcb and square and flatter buttons on eglfs.
              • QComboBoxes are raised on xcb and sunken on eglfs.
              • The QScrollBars show a white fill on eglfs.

              xcb
              1_1559507527581_buttons0-xcb.jpeg
              eglfs
              0_1559507527581_buttons0-eglfs.jpeg
              xcb
              1_1559507737169_buttons1-xcb.jpeg
              eglfs
              0_1559507894469_buttons1-eglfs.jpeg
              xcb
              1_1559507937541_combobox-xcb.jpeg
              eglfs
              0_1559507937541_combobox-eglfs.jpeg
              xcb
              1_1559508006252_scroll-xcb.jpeg
              eglfs
              0_1559508006252_scroll-eglfs.jpeg

              There are lots of other differences, but I hope these pictures are enough to describe my problem.

              JKSHJ 1 Reply Last reply
              0
              • JKSHJ JKSH

                @rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:

                Is there something I can do to make eglfs look better? If not, is there an alternative to eglfs? I need something like eglfs, that doesn't need a window system but run GUI applications.

                Try applying the Fusion style to your whole application and see if you like that. https://doc.qt.io/qt-5/qapplication.html#setStyle

                If not, please describe in more detail what kind of device it is, what constraints you have, how you're creating the GUI (widgets? Qt Quick? OpenGL?), etc.

                R Offline
                R Offline
                rrd0
                wrote on last edited by
                #7

                @JKSH

                Wooow!!! Applying the Fusion style solved almost all of my problems with eglfs. Thank you very much.

                Now applications have the same style, regardless of the platform they are running on.

                The only problem that persists is the invisible pixmap on drag-n-drop operations. Does anybody know how to solve that?

                1 Reply Last reply
                0
                • R rrd0

                  @SGaist

                  Here are some images of what I'm expecting (what I have on xcb platform) and what I'm getting on eglfs platform.

                  • You'll see rounded buttons on xcb and square and flatter buttons on eglfs.
                  • QComboBoxes are raised on xcb and sunken on eglfs.
                  • The QScrollBars show a white fill on eglfs.

                  xcb
                  1_1559507527581_buttons0-xcb.jpeg
                  eglfs
                  0_1559507527581_buttons0-eglfs.jpeg
                  xcb
                  1_1559507737169_buttons1-xcb.jpeg
                  eglfs
                  0_1559507894469_buttons1-eglfs.jpeg
                  xcb
                  1_1559507937541_combobox-xcb.jpeg
                  eglfs
                  0_1559507937541_combobox-eglfs.jpeg
                  xcb
                  1_1559508006252_scroll-xcb.jpeg
                  eglfs
                  0_1559508006252_scroll-eglfs.jpeg

                  There are lots of other differences, but I hope these pictures are enough to describe my problem.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  @rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:

                  Wooow!!! Applying the Fusion style solved almost all of my problems with eglfs. Thank you very much.

                  Now applications have the same style, regardless of the platform they are running on.

                  Great!

                  The only problem that persists is the invisible pixmap on drag-n-drop operations. Does anybody know how to solve that?

                  Sorry, I don't know how to change that. You can try to subscribe to the Interest mailing list and ask there -- Qt engineers are active on that mailing list.

                  @rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:

                  Here are some images of what I'm expecting (what I have on xcb platform) and what I'm getting on eglfs platform.

                  • You'll see rounded buttons on xcb and square and flatter buttons on eglfs.
                  • QComboBoxes are raised on xcb and sunken on eglfs.
                  • The QScrollBars show a white fill on eglfs.

                  ...

                  There are lots of other differences, but I hope these pictures are enough to describe my problem.

                  The differences that you showed are intended in the platform design.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  1

                  • Login

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