On 15.09.09 14:23:53, Olivier Goffart wrote: > On Tuesday 15 September 2009 13:33:41 Andreas Pakulat wrote: > > Hi, > > > > I've just installed and compiled the Qt4.6 TP1 on Linux and am running > > into a problem when trying to create a QTileRules object using just 1 > > argument. The class declaration has two constructors, one taking a > > single argument of type Qt::TileRule, the other taking two such > > arguments but supplying a default value for the second argument. > > > > This creates a problem when using the single-argument constructor, the > > compiler cannot decide between the two constructors as a single argument > > fulfills both. > > > > The attached main.cpp shows the problem, just try to compile it via: > > qmake -project; qmake; make > > Nice spot. > The problem solved. > > You are using the QTileRules for qDrawBorderImage, right?
No. > How did you find it? Because for some reason the right overload did not > appears > in the documentation (also fixed) This was found by a tool we're using here at work that generates bindings for the Qt api. It generated code that tried to create a QTileRule instance with just 1 argument and that didn't compile. Andreas -- Andreas Pakulat [email protected] froglogic GmbH - Automated UI and Web Testing _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
