Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Same code different GUI?
Qt 6.12 LTS is out! See what's new in the release blog

Same code different GUI?

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 4 Posters 797 Views 3 Watching
  • 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.
  • Christian EhrlicherC Christian Ehrlicher

    You can pass the style you want to use by command line ( https://doc.qt.io/qt-6/qapplication.html#QApplication-1 ) or by code ( https://doc.qt.io/qt-6/qapplication.html#setStyle )

    MucipM Offline
    MucipM Offline
    Mucip
    wrote last edited by
    #21

    @Christian-Ehrlicher ,
    I added below line in main.cpp but nothing changed in Debian 12.

    QApplication::setStyle(QStyleFactory::create("Fusion"));
    MainWindow w;
    

    Regards,
    Mucip:)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved