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. Mac - qt 5.5 - theme - how to run qtcreator command in terminal
Forum Updated to NodeBB v4.3 + New Features

Mac - qt 5.5 - theme - how to run qtcreator command in terminal

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 5.3k 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.
  • X Offline
    X Offline
    xCodez
    wrote on last edited by
    #1

    Hi all, I'm new to Qt and I have tried to set up a theme.
    I'm using Qt 5.5 for Mac OS X El Capitan.

    So far it is partial set up, as the project explorer and console are keeping the original settings.

    I tried this theme:
    https://github.com/mervick/Qt-Creator-Darcula

    Yet a the phase "- And run qtcreator -color "#2b2b2b" -stylesheet /path/to/dracula.css" I am unable to do it.

    I tried running it from terminal, but it states "-bash: qtcreator: command not found".

    An example of how to give arguments to Qt start.. but I need specifics, as again I don't know where to give the arguments.
    Any help or links are much appreciated.

    the_T 1 Reply Last reply
    0
    • X xCodez

      Hi all, I'm new to Qt and I have tried to set up a theme.
      I'm using Qt 5.5 for Mac OS X El Capitan.

      So far it is partial set up, as the project explorer and console are keeping the original settings.

      I tried this theme:
      https://github.com/mervick/Qt-Creator-Darcula

      Yet a the phase "- And run qtcreator -color "#2b2b2b" -stylesheet /path/to/dracula.css" I am unable to do it.

      I tried running it from terminal, but it states "-bash: qtcreator: command not found".

      An example of how to give arguments to Qt start.. but I need specifics, as again I don't know where to give the arguments.
      Any help or links are much appreciated.

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @xCodez

      Did you add the directory where the qtcreator binary is located to your path variable?
      What is the output of which qtcreator ?

      If this returns nothing, then try to run it with
      /path/to/qtcreator -color "#2b2b2b" -stylesheet /path/to/dracula.css

      -- No support in PM --

      1 Reply Last reply
      1
      • X Offline
        X Offline
        xCodez
        wrote on last edited by
        #3

        I really appreciate your time.

        In terminal 'which qtcreator' returns nothing.
        I have copied the .css file in '.config/QtProject/qtcreator/styles'.

        The issue is that I cannot find where/how to set arguments to Qt when it starts.
        I have a coupe of days through the Qt documentation and google-ing. I cannot provide screen shots here in the forum..

        Should I change that in the .ini file? If so, then where I need to do it.

        I'm not sure if I give the correct path here (it's dragged to the terminal so there are no spelling mistakes):

        Hs-iMac:~ hibonda$ /Users/hibonda/Qt/QtCreator.app -color "#2b2b2b" -stylesheet /Users/hibonda/.config/QtProject/qtcreator/styles/dracula.css
        -bash: /Users/hibonda/Qt/QtCreator.app: is a directory

        I am running the program from QtCreator.app, therefore I don't know what am I doing wrong here..

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          The path to the actually binary is Qt\ Creator.app/Contents/MacOS/Qt\ Creator

          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
          1
          • X Offline
            X Offline
            xCodez
            wrote on last edited by
            #5

            Wow! that was the path! very accurate!

            So for anyone else seeking for this :

            /Users/yourName/Qt/QtCreator.app/Contents/MacOS/Qt\ Creator -color "#2b2b2b" -stylesheet /Users/yourName/.config/QtProject/qtcreator/styles/dracula.css

            This is the correct path (to be run in terminal).

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Good

              Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

              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

              • Login

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