Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. The #1 feature I miss in QML: The C/C++ preprocessor
Forum Updated to NodeBB v4.3 + New Features

The #1 feature I miss in QML: The C/C++ preprocessor

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 216 Views 1 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.
  • J Offline
    J Offline
    jarle
    wrote on 25 Jun 2024, 10:32 last edited by
    #1

    It would be really helpful to be able to selectively include or exclude blocks of QML code based on compile time switches. Not to mention using #define for compile time constants and in some cases the actual QML component to use.

    This would make cross platform development of things like dialogs and some views much simpler. It could also reduce the binary size and complexity of some QML components that today use global properties to enable or disable certain behaviors (like number of columns for UI elements in a Dialog, or the size of a window).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Jun 2024, 18:49 last edited by
      #2

      Hi,

      This is not a replacement but maybe the file selectors feature might help.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      25 Jun 2024, 10:32

      • Login

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