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. Qwidget shows transparent background on linux machine.
QtWS25 Last Chance

Qwidget shows transparent background on linux machine.

Scheduled Pinned Locked Moved General and Desktop
12 Posts 2 Posters 2.6k 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.
  • Y Offline
    Y Offline
    yhodage
    wrote on last edited by
    #1

    Hi ,

    i have created the window using base class as Qwidget.
    ex
    TopWindow::Topwindow(const char* name):Qwidget(0, name)
    {

    }

    the created window launch fine on windows machine but on Linux machine it shows the desktop background while launching application.
    i have created the child widget on this window.
    on Linux it shows the opened document background while launching application but once it is launched it shows proper background.

    how to prevent the displaying the desktop background while launching application on Linux machine.?

    Thanks

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yhodage
      wrote on last edited by
      #2

      plz anybody know this problem?

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        Is your Linux machine a physical machine or a virtual machine?

        What graphics card does your Linux machine have?

        What happens if your application launches a plain QWidget, instead of your TopWindow?

        [quote]
        @TopWindow::Topwindow(const char* name):Qwidget(0, name)@
        [/quote]That won't compile. Please show us some of your actual code.

        Also, please be patient. Wait a few days before posting again.

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

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yhodage
          wrote on last edited by
          #4

          Hi,

          yes, my Linux machine is physical machine. Linux machine has NVDIA graphics driver.

          here TopWindow is derived class from QWidget.

          Thanks for your reply

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            [quote author="yhodage" date="1391593710"]here TopWindow is derived class from QWidget.[/quote]I meant this:

            @
            QWidget w;
            w.show()
            @

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

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              yhodage
              wrote on last edited by
              #6

              Hello ,

              actually we have graphics widget on mainwindow. main window is inherited from QWidget and graphics widget inherited from QGLWidget.
              on Linux(red hat 5.4) when we launch main application it shows desktop background while launching. it seems that the the graphics widget does not clear previous content.
              I have attached the two snapshot of the same.
              Please help me to resolve this issue
              Thanks

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                yhodage
                wrote on last edited by
                #7

                can you please let me know how to add the attachment to current thread?

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  Hi,

                  You have to upload your images to an external host (like Google Drive, or Microsoft OneDrive, or Imgur) and post the links here.

                  Anyway,

                  What version of Qt are you using?

                  Do other OpenGL applications work properly on your machine?

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

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    yhodage
                    wrote on last edited by
                    #9

                    Thanks for reply

                    i am using qt 4.8 version. we are using two types of graphics library i.e. OpenGL and Hoops. this problem is occurred on linux machine with graphics library OpenGL

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      That's why I asked you: Do other OpenGL applications work properly on your machine?

                      Maybe you need to fix your graphics drivers.

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

                      1 Reply Last reply
                      0
                      • Y Offline
                        Y Offline
                        yhodage
                        wrote on last edited by
                        #11

                        yes the other OpenGl application works on linux machine

                        1 Reply Last reply
                        0
                        • JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          OK.

                          Are you able to try Qt 5.2.1 (or even Qt 5.3.0 beta)? There have been many improvements in graphics since Qt 4.8.

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

                          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