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. qt framwork gui object not rendering on LXDE
Forum Updated to NodeBB v4.3 + New Features

qt framwork gui object not rendering on LXDE

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 1.1k Views
  • 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.
  • O Offline
    O Offline
    OmerBrandis
    wrote on 17 Jun 2020, 09:59 last edited by
    #1

    hello,

    I'm somewhat of a newbie to qt development and linux desktop alternatives, so please be gentle.

    i've developed a c++ desktop application for ubuntu 16 running standard unity desktop , i used qt framework 5.10.1 classes QMainWindow,QPushButton,QTextEdit ,QLabel... it works nicely.

    then tried deploying ( simply copied the binary created on my desktop ) to a different machine that runs the lxde desktop,
    and on it -> the various gui objects don't render correctly/at all.

    can anyone provide more information about what must be done in order to use qt framework gui objects on lxde ?
    ( i've found a similar unanswered post - https://forum.qt.io/topic/64071/qt-demos-not-rendering-to-screen )

    thanks,
    Omer

    J 1 Reply Last reply 17 Jun 2020, 10:36
    0
    • O OmerBrandis
      17 Jun 2020, 09:59

      hello,

      I'm somewhat of a newbie to qt development and linux desktop alternatives, so please be gentle.

      i've developed a c++ desktop application for ubuntu 16 running standard unity desktop , i used qt framework 5.10.1 classes QMainWindow,QPushButton,QTextEdit ,QLabel... it works nicely.

      then tried deploying ( simply copied the binary created on my desktop ) to a different machine that runs the lxde desktop,
      and on it -> the various gui objects don't render correctly/at all.

      can anyone provide more information about what must be done in order to use qt framework gui objects on lxde ?
      ( i've found a similar unanswered post - https://forum.qt.io/topic/64071/qt-demos-not-rendering-to-screen )

      thanks,
      Omer

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 17 Jun 2020, 10:36 last edited by
      #2

      @OmerBrandis Take a look at this first: https://doc.qt.io/qt-5/linux-deployment.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        OmerBrandis
        wrote on 17 Jun 2020, 12:07 last edited by
        #3

        thank you very much jsulm,
        i have read the document, but i'm afraid i don't understand what it/you are suggesting.

        are you suggesting i try static linkage ?
        ( i don't understand how this will help, the target pc running lxde has a valid version of qt framework runtime on it )

        thanks,
        Omer.

        J 1 Reply Last reply 17 Jun 2020, 12:12
        0
        • O OmerBrandis
          17 Jun 2020, 12:07

          thank you very much jsulm,
          i have read the document, but i'm afraid i don't understand what it/you are suggesting.

          are you suggesting i try static linkage ?
          ( i don't understand how this will help, the target pc running lxde has a valid version of qt framework runtime on it )

          thanks,
          Omer.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 17 Jun 2020, 12:12 last edited by
          #4

          @OmerBrandis said in qt framwork gui object not rendering on LXDE:

          are you suggesting i try static linkage ?

          No, I don't.
          I suggest you check whether you deployed your app properly as described in that link. For example: did you deploy plug-ins properly?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • O Offline
            O Offline
            OmerBrandis
            wrote on 17 Jun 2020, 12:17 last edited by
            #5

            Hello Jsulm,

            if i did not install qt-framework runtime correctly, shouldn't i get some sort of runtime error ? (which i don't...)

            Thanks,
            Omer

            J 1 Reply Last reply 17 Jun 2020, 12:32
            0
            • O OmerBrandis
              17 Jun 2020, 12:17

              Hello Jsulm,

              if i did not install qt-framework runtime correctly, shouldn't i get some sort of runtime error ? (which i don't...)

              Thanks,
              Omer

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 17 Jun 2020, 12:32 last edited by
              #6

              @OmerBrandis If you deploy your app then there is no need to install Qt framework on the target machine. That's the whole point of "deploying". If you did not deploy properly your app can fail silently. Did you try to start the app from a terminal to see whether there are any warnings/errors? Why don't you check the link I provided and compare to what you did? Especially "Creating the Application Package" part. It describes how your application package should be structured.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • O Offline
                O Offline
                OmerBrandis
                wrote on 17 Jun 2020, 13:02 last edited by
                #7

                Hello Jsulm,

                the app is started from a terminal. no error/messages are written by qt to the terminal/stdout/stderr.

                by "deploy" i only meant - copied my executable.
                the required qt framework libs have already been installed.

                by "silent failure" due to incomplete deployment you mean that there are cases where a missing lib or one that has an incorrect version , can lead to silent failures ?

                omer.

                J 1 Reply Last reply 17 Jun 2020, 13:29
                0
                • O OmerBrandis
                  17 Jun 2020, 13:02

                  Hello Jsulm,

                  the app is started from a terminal. no error/messages are written by qt to the terminal/stdout/stderr.

                  by "deploy" i only meant - copied my executable.
                  the required qt framework libs have already been installed.

                  by "silent failure" due to incomplete deployment you mean that there are cases where a missing lib or one that has an incorrect version , can lead to silent failures ?

                  omer.

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 17 Jun 2020, 13:29 last edited by
                  #8

                  @OmerBrandis said in qt framwork gui object not rendering on LXDE:

                  the required qt framework libs have already been installed

                  Now the question is: is the other machine also Ubuntu 16 and has Qt 5.10.1? If not then this is not going to work. Either build your app on that other machine or deploy the app properly.

                  You can do this on the other machine:

                  ldd YOUR_APP_EXE
                  

                  and see whether any libs are missing.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    OmerBrandis
                    wrote on 18 Jun 2020, 11:03 last edited by
                    #9

                    Hello,

                    we got it working.
                    it seems that there was a problem with "deployment" after all.
                    somehow there were more then one instance/installation of the qt framework on the target pc + a very old version of the executable was copied to it,
                    once the correct version of the application was used and using the correct version of the qt framework , the gui elements were rendered correctly.
                    :-)

                    Omer.

                    1 Reply Last reply
                    0

                    1/9

                    17 Jun 2020, 09:59

                    • Login

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