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. How to disable default QApplication command line arguments?
Qt 6.11 is out! See what's new in the release blog

How to disable default QApplication command line arguments?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k 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.
  • T3STYT Offline
    T3STYT Offline
    T3STY
    wrote on last edited by
    #1

    Every Qt application automatically supports some default arguments, available in this list:
    http://doc.qt.io/qt-5/qapplication.html#QApplication

    How can I disable them? Especially, the -qmljsdebugger argument, which may even introduce security issues in final applications since anyone can connect a debugger to the internal QML JavaScript engine. I'm really worried about it.

    1 Reply Last reply
    1
    • A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      You pass over the command line to QApplication / QCoreApplication. So you control what command line options Qt will see.

      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 Extensions
      • Unsolved