Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]How to view Qt applications in different styles?
Forum Update on Monday, May 27th 2025

[Solved]How to view Qt applications in different styles?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hareen Laks
    wrote on 18 Jul 2013, 08:02 last edited by
    #1

    Hi,

    I heard Qt applications can easily preview in different styles.

    I asked my colleague and he says I have to use -style motif as arguments in run settings. It change the appearance of my app, but i need to try out all the styles.

    So,

    1. What are the commands should I use ?

    2. Are there any way to change styles? I found someone says use @QApplication::setStyle(new QPlastiqueStyle)@

    3. what is the best way?

    Thanks in advance..

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on 20 Jul 2013, 22:55 last edited by
      #2

      Hello ~Hareen Laks

      Both ways are okay, you can set style via command line argument, like ("-style <stylename>") or via runtime command (qApp->setStyle(QStyle*)). For trying all styles I would recommend you to use the second one, but you can use the first one also

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hareen Laks
        wrote on 24 Jul 2013, 05:05 last edited by
        #3

        Thank you tucnak..

        I enjoyed lot of styles except some are not possible with my OS. :)

        1 Reply Last reply
        0

        1/3

        18 Jul 2013, 08:02

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved