Qwidget shows transparent background on linux machine.
-
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.
-
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
-
[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 -
can you please let me know how to add the attachment to current thread?
-
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?
-
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
-
That's why I asked you: Do other OpenGL applications work properly on your machine?
Maybe you need to fix your graphics drivers.
-
yes the other OpenGl application works on linux machine
-
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.