PDA

View Full Version : Cross-platform GUI app



rockballad
20th April 2010, 09:29
Hello,

I have a small issue. I'm building a cross-platform GUI application. I'm finished on Windows XP, but when porting to Linux (Ubuntu), the GUI is kind of being broken for default style. Anyone has a tip for making them the same (or more exactly, Ubuntu GUI is the same to XP GUI)?

I only know this way:

QApplication::setStyle(stylename);
But the style is limited in about 7 types: windows, cleanlooks, cde, motif, plastique, windowsxp, macintosh

Thanks in advance.

Lykurg
20th April 2010, 12:42
You gave the answer yourself! You can use windows style as base and alter it yourself. But there is no way to use the native windows style on linux.

rockballad
21st April 2010, 07:38
Thanks. I knew it. I may have to use #ifdef to set style for each environment.