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. passing multiple options to qterminal
Forum Updated to NodeBB v4.3 + New Features

passing multiple options to qterminal

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 794 Views 2 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.
  • JonBJ JonB

    @AnneRanch

    I am trying to instruct qterminal to execute "bluetoothctl help".

    Presumably you want

    params = QStringList()<<"-e"<<"bluetoothctl help";
    
    A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #3

    @JonB Yes, your assumption is correct ...and it does not work ,,,been there , done that

    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      @JonB Yes, your assumption is correct ...and it does not work ,,,been there , done that

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #4

      @AnneRanch
      Guessing from https://github.com/lxqt/qterminal/blob/master/src/main.cpp, either

      params = QStringList()<<"-e"<<"bluetoothctl help";
      params = QStringList()<<"-e"<<"bluetoothctl" << "help";
      

      may work just as well, because the author likes the latter. So long as you have tried both those it's not your command-line that is at issue.

      A 1 Reply Last reply
      1
      • JonBJ JonB

        @AnneRanch
        Guessing from https://github.com/lxqt/qterminal/blob/master/src/main.cpp, either

        params = QStringList()<<"-e"<<"bluetoothctl help";
        params = QStringList()<<"-e"<<"bluetoothctl" << "help";
        

        may work just as well, because the author likes the latter. So long as you have tried both those it's not your command-line that is at issue.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #5

        @JonB said in passing multiple options to qterminal:

        params = QStringList()<<"-e"<<"bluetoothctl help";
        params = QStringList()<<"-e"<<"bluetoothctl" << "help";

        These are all of my attempts to make it work...
        What is really frustrating - there are no progress / error codes -
        the QProcess starts but there is obviously no execution of the arguments...

           params = QStringList()<<"-e"<<"bluetoothctl";
            //params = QStringList()<<"-e"<<"bluetoothctl" << "-e" << " help";
            //params = QStringList()<<"-e"<<"bluetoothctl help";
            //params = QStringList()<<"-e"<<"bluetoothctl" << "help";
        

        I did post my inquiry in "qterminal" forum - waiting for reply....
        Irregardless if I can make it work - I am still working on how to actually access the "window "
        created . Again - most people expect to have single process question and this is not
        a single issue - it has to be solved as a collection of systems / processes etc.

        And I am reluctant to post in half a dozed forums just to solve ONE process.
        .

        JonBJ 1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on last edited by mchinand
          #6

          Does it work when just calling it from the command line?

          qterminal -e bluetoothctl help

          A 1 Reply Last reply
          1
          • A Anonymous_Banned275

            @JonB said in passing multiple options to qterminal:

            params = QStringList()<<"-e"<<"bluetoothctl help";
            params = QStringList()<<"-e"<<"bluetoothctl" << "help";

            These are all of my attempts to make it work...
            What is really frustrating - there are no progress / error codes -
            the QProcess starts but there is obviously no execution of the arguments...

               params = QStringList()<<"-e"<<"bluetoothctl";
                //params = QStringList()<<"-e"<<"bluetoothctl" << "-e" << " help";
                //params = QStringList()<<"-e"<<"bluetoothctl help";
                //params = QStringList()<<"-e"<<"bluetoothctl" << "help";
            

            I did post my inquiry in "qterminal" forum - waiting for reply....
            Irregardless if I can make it work - I am still working on how to actually access the "window "
            created . Again - most people expect to have single process question and this is not
            a single issue - it has to be solved as a collection of systems / processes etc.

            And I am reluctant to post in half a dozed forums just to solve ONE process.
            .

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #7

            @AnneRanch
            Ultimately if you get it going it will behave the same as your xterm attempt, because you are still running a terminal.

            A 1 Reply Last reply
            0
            • M mchinand

              Does it work when just calling it from the command line?

              qterminal -e bluetoothctl help

              A Offline
              A Offline
              Anonymous_Banned275
              wrote on last edited by Anonymous_Banned275
              #8

              @mchinand

              No, it does not work from terminal, hence the problem is in qterminal itself. I think it is time to abandon qterminal....

              6c98a21f-6cda-44ff-b517-1a2fb0219cca-image.png

              M 1 Reply Last reply
              0
              • JonBJ JonB

                @AnneRanch
                Ultimately if you get it going it will behave the same as your xterm attempt, because you are still running a terminal.

                A Offline
                A Offline
                Anonymous_Banned275
                wrote on last edited by
                #9

                @JonB
                I fully realize that - but this "native window" exists physically and I should be able to access it.
                As I said - this is not a single process problem - now the multiple options is identified - it is time to
                concentrate on access to "NATIVE WINDOW"...

                JonBJ 1 Reply Last reply
                0
                • A Anonymous_Banned275

                  @mchinand

                  No, it does not work from terminal, hence the problem is in qterminal itself. I think it is time to abandon qterminal....

                  6c98a21f-6cda-44ff-b517-1a2fb0219cca-image.png

                  M Offline
                  M Offline
                  mchinand
                  wrote on last edited by
                  #10

                  @AnneRanch said in passing multiple options to qterminal:

                  No, it does not work from terminal

                  Is that 'Shell No. 1' terminal the result of qterminal -e bluetoothctl? Doesn't that mean it does work from a terminal?

                  A 1 Reply Last reply
                  0
                  • M mchinand

                    @AnneRanch said in passing multiple options to qterminal:

                    No, it does not work from terminal

                    Is that 'Shell No. 1' terminal the result of qterminal -e bluetoothctl? Doesn't that mean it does work from a terminal?

                    A Offline
                    A Offline
                    Anonymous_Banned275
                    wrote on last edited by
                    #11

                    @mchinand Please read the title and the last post - it about passing multiple options .....and that does not work

                    1 Reply Last reply
                    0
                    • A Anonymous_Banned275

                      @JonB
                      I fully realize that - but this "native window" exists physically and I should be able to access it.
                      As I said - this is not a single process problem - now the multiple options is identified - it is time to
                      concentrate on access to "NATIVE WINDOW"...

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by JonB
                      #12

                      @AnneRanch said in passing multiple options to qterminal:

                      but this "native window" exists physically and I should be able to access it.
                      it is time to concentrate on access to "NATIVE WINDOW"...

                      I have tried to explain several times that you will not be able to access the output you see in a terminal --- whether from xterm or qterminal --- from an external program, such as your Qt application. That output goes into the terminal's output window and is not available to "see" or "read" elsewhere, even though you would like it to be. But I will leave you to your investigations.

                      When you come to the same conclusion you have my reply at https://forum.qt.io/topic/139374/another-xterm-qtextedit-issues/10 which shows what you will need to do if you do wish to access the output from bluetoothctl and has code showing how to do it and what the final output will look like.

                      1 Reply Last reply
                      2

                      • Login

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