Where does the palette index come from? Are you writing something portable?
Where does the palette index come from? Are you writing something portable?
J-P Nurmi
Hi,
Yes it is intended to be portable, there are some sets of colors and they have their RBG values. But the programmer who written the old application used some #define color1 int_value
and than create QPEN(...,...,...PALLETEINDEX(color1)); etc
Is it possible to use the "color1" and create a QColor from it ?
Maverick
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
can anybody tell me how to begin with QT Programmering.
I m new to this Technology.
Start a new thread or read docs first.
Do not write non-related posts in this thread.
Thanks
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Try:
Qt Code:
To copy to clipboard, switch view to plain text mode
J-P Nurmi
maverick_pol (24th September 2007)
Hi,
I will test the code today in the afternoon. Thank you for your advice. If anything come up(any errors) I will renew this thread.
Thanks
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Bookmarks