1

When I display my QGLWidget in the layout of my main QWidget, everything is fine. When I put the QGLWidget into a QScrollArea, and then display, Python says:

2011-05-14 19:10:28.900 Python[68311:613] invalid drawable
Neil G
  • 32,138
  • 39
  • 156
  • 257

1 Answers1

1

Making the widget resizable seemed to fix the problem.

Neil G
  • 32,138
  • 39
  • 156
  • 257
  • You should accept your own answer. (You don't get any rep, it just marks the question as answered.) – TonyK May 15 '11 at 09:32
  • @TonyK, Thanks. StackOverflow wants me to wait two days until I can accept. – Neil G May 15 '11 at 10:01
  • 1
    This was happening to me just now. In my case, the offending widget was a vtk widget inside a QSplitter that was sized very small. As far as I can tell, the "invalid drawable" error was happening because the widget was being told to draw in such a tiny area. When I added a line to resize the splitter first, it stopped complaining. Your mileage may vary. – Stuart Berg Jan 10 '13 at 05:27