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? How did you find it? Because for some reason the right overload did not appears in the documentation (also fixed) -- Olivier _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
