Qwidget shows transparent background on linux machine.
-
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
-
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.
-
[quote author="yhodage" date="1391593710"]here TopWindow is derived class from QWidget.[/quote]I meant this:
@
QWidget w;
w.show()
@ -
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 -
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?
-
That's why I asked you: Do other OpenGL applications work properly on your machine?
Maybe you need to fix your graphics drivers.
-
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.