Results 1 to 3 of 3

Thread: Cross-platform GUI app

  1. #1
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cross-platform GUI app

    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:
    Qt Code:
    1. QApplication::setStyle(stylename);
    To copy to clipboard, switch view to plain text mode 
    But the style is limited in about 7 types: windows, cleanlooks, cde, motif, plastique, windowsxp, macintosh

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Cross-platform GUI app

    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.

  3. #3
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cross-platform GUI app

    Thanks. I knew it. I may have to use #ifdef to set style for each environment.

Similar Threads

  1. Qt's Cross-Platform Functionality
    By winston2020 in forum Qt Programming
    Replies: 3
    Last Post: 18th January 2009, 18:31
  2. Cross platform advice
    By tntcoda in forum Installation and Deployment
    Replies: 1
    Last Post: 15th October 2008, 17:58
  3. cross platform basics
    By tommy in forum Installation and Deployment
    Replies: 1
    Last Post: 8th February 2008, 19:16
  4. Cross platform application???
    By Shuchi Agrawal in forum Newbie
    Replies: 6
    Last Post: 15th February 2007, 05:36
  5. Cross Platform Logging
    By skyphyr in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2006, 16:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.