Reputation: 5701
I am converting some GUI code I originally wrote using the win32 API, to use QT.
I have come accross some items for which I cant find any direct equivalents. They are:
Any help?
[Edit]
I am building on Ubuntu 9.10
Upvotes: 2
Views: 367
Reputation: 1691
If you are not very concerned about performance, implement MulDiv using 64 bit integers:
long MulDiv(long v1, long v2, long v3)
{
return (long)(((long long)v1*(long long)v2) / v3);
}
Upvotes: 1
Reputation: 26873
QColor class has methods red(), green(), blue().
BrushStyle enum defines different brush patterns.
You can code MulDiv yourself, it just "multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value"
QBitmap is Qt bitmap class.
Upvotes: 2