Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33630

QML Preview does not work anymore

XMLWordPrintable

    • ea5d0560b (18.0)

      Trying to start QML Preview only throws some errors to Application Output:

      09:32:37: Starting /home/user/test/build/Desktop_Qt_6_10_0-Debug/appQMLPreviewTest -qmljsdebugger=file:,block,services:QmlPreview,DebugTranslation...
      QML debugging is enabled. Only use this in a safe environment.
      QML Debugger: Ignoring "-qmljsdebugger=file:,block,services:QmlPreview,DebugTranslation".
      The format is "-qmljsdebugger=[file:<file>|port:<port_from>][,<port_to>][,host:<ip address>][,block][,services:<service>][,<service>]*"
      "file:" can be used to specify the name of a file the debugger will try to connect to using a QLocalSocket. If "file:" is given any "host:" and"port:" arguments will be ignored.
      "host:" and "port:" can be used to specify an address and a single port or a range of ports the debugger will try to bind to with a QTcpServer.
      "block" makes the debugger and some services wait for clients to be connected and ready before the first QML engine starts.
      "services:" can be used to specify which debug services the debugger should load. Some debug services interact badly with others. The V4 debugger should not be loaded when using the QML profiler as it will force any V4 engines to use the JavaScript interpreter rather than the JIT. The following debug services are available by default:
      QmlDebugger	- The QML debugger
      V8Debugger	- The V4 debugger
      QmlInspector	- The QML inspector
      CanvasFrameRate	- The QML profiler
      EngineControl	- Allows the client to delay the starting and stopping of
      		  QML engines until other services are ready. QtCreator
      		  uses this service with the QML profiler in order to
      		  profile multiple QML engines at the same time.
      DebugMessages	- Sends qDebug() and similar messages over the QML debug
      		  connection. QtCreator uses this for showing debug
      		  messages in the debugger console.
      
      DebugTranslation	- helps to see if a translated text
      		  will result in an elided text
      		  in QML elements.
      Other services offered by qmltooling plugins that implement QQmlDebugServiceFactory and which can be found in the standard plugin paths will also be available and can be specified. If no "services" argument is given, all services found this way, including the default ones, are loaded.
      09:32:42: The command "/home/user/test/build/Desktop_Qt_6_10_0-Debug/appQMLPreviewTest -qmljsdebugger=file:,block,services:QmlPreview,DebugTranslation" could not be started. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
      

      Additionally in Qt Creator 17.0.2, the preview process crashes when the preview window is closed, but could not test if that is the case in 18 still due to this issue.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            con Eike Ziller
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes