Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. console
    Log in to post
    • All categories
    • M

      Solved Cannot mix incompatible Qt library
      General and Desktop • console linux sql libraries incompatible • • Maikie130

      13
      0
      Votes
      13
      Posts
      4149
      Views

      W

      @Maikie130 If you have many tools, you can toss them all in the bin dir of one big AppDir made by linuxdeploy. For example, /opt/maiki/usr/bin and everything in that bin dir will get set with rpath by linuxdeploy to look for libraries in /opt/maikie/usr/lib, but nothing else on the system will get impacted by those libraries, so you don't have to duplicate but you can easily accumulate stuff in that appdir that is easy to move to your server.

      The qt plugin has binarties published, so you can just use that rather than building it from source. They use the same appdir style of bundling everything into an image, so you can just grab the binary, chmod it +x and use it.

    • K

      Unsolved Modbus problems when console is connected
      General and Desktop • modbus console widgets serialbus • • kalamondin

      1
      0
      Votes
      1
      Posts
      775
      Views

      No one has replied

    • A

      Unsolved Redirect console output to GUI
      General and Desktop • terminal console gui embedded • • Anime4000

      2
      0
      Votes
      2
      Posts
      3358
      Views

      SGaist

      Hi and welcome to devnet,

      There's no ready made "console widget", you can use QPlainTextEdit or depending on the amount of data a QListView with a custom QStyledItemDelegate for fancy rendering.

      For getting the output of your cli application, you can use QProcess.

    • U

      Unsolved MSVC-2017x64 - WinRT Run & Console Issues
      General and Desktop • winrt console run uwp msvc2017 • • Uniflare

      1
      0
      Votes
      1
      Posts
      516
      Views

      No one has replied

    • R

      Unsolved Unable to see the QDebug Messages on console.
      General and Desktop • qdebug qt-5.7.1 console • • Rohith

      15
      0
      Votes
      15
      Posts
      19696
      Views

      T

      correct @Paul-Colby
      thanks

    • CybeX

      Unsolved [POSSIBLE BUG] QT Console Application appears in Application Output panel instead of Console Window
      General and Desktop • console console applica qt 5.7 • • CybeX

      5
      0
      Votes
      5
      Posts
      3773
      Views

      N

      Really very help full. Thanks for sharing your precious experiences movements.

    • CybeX

      Unsolved QT Console application - go back up one line and add text to current line
      General and Desktop • console console applica text string formatting • • CybeX

      2
      0
      Votes
      2
      Posts
      1077
      Views

      SGaist

      Hi,

      As silly as it may sound but wouldn't removing << std::endl from the checking line be enough ?

    • B

      Unsolved Run Qt widget app on linux with no GUI
      General and Desktop • linux console widgets • • Bremenpl

      26
      0
      Votes
      26
      Posts
      19590
      Views

      mrjj

      @Bremenpl
      Hi, other option is to create a custom session
      so you can have single app and also be able to start a desktop if needed.

      Most likely you will want to run a windows manager also.

      http://askubuntu.com/questions/23932/how-do-i-replace-the-desktop-by-an-application

      Im not sure if @Eeli-K solution is the same in debian version. :)

    • Zoltan

      Solved How to add GUI to a Qt console application?
      General and Desktop • pro file console gui • • Zoltan

      3
      0
      Votes
      3
      Posts
      6906
      Views

      Zoltan

      @SGaist Thank you, I will try it!

    • A

      Unsolved Qt Console Application - Print colored text
      General and Desktop • print color console • • AliReza Beytari

      12
      0
      Votes
      12
      Posts
      10614
      Views

      A

      Yes, the code you have there uses VT100 Escape Codes (note that \033 is the octal representation of character 27=escape. You could also use the hexadecimal \x1b instead), see http://en.wikipedia.org/wiki/ANSI_escape_code

      These require a terminal emulator that supports VT100, which almost all linux terminal emulators do. Windows Command Prompt doesn't support them by default, but at the bottom of https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences there is some code that shows how to turn that on (it's only a few lines of additional code that you only need to run once at the beginning - I would put it into an #ifdef __WIN32 #endif for platform independence.)
      I haven't actually tried that though and I'm not sure on which versions of windows it works.

      Regarding python: python doesn't natively support VT100 either, but the colorama package https://pypi.org/project/colorama/ enables them (to my knowledge, it replaces the print or write methods with something that extracts the escape codes and does the manipulations via calls to kernel32.dll methods).

    • tendim

      Unsolved Qt app with both Console and GUI components
      General and Desktop • console gui libraries • • tendim

      5
      0
      Votes
      5
      Posts
      3155
      Views

      SGaist

      By the way, in QApplication's detailed documentation, you have an example of how start an application in "no-gui" mode.

    • S

      Unsolved Last debug does not print anything :/
      General and Desktop • qapplication qdebug console • • sami1592

      5
      0
      Votes
      5
      Posts
      1429
      Views

      S

      @hskoglund Thanks for the info

    • P

      Unsolved Running a console application within an GUI application
      General and Desktop • qtcreator qt5 console gui • • pauliedunne

      6
      0
      Votes
      6
      Posts
      3815
      Views

      kshegunov

      I don't understand what you mean, Qt is a GUI library by design.

    • sosun

      Why is it impossible to call console.log from the js function in QML[SOLVED]
      QML and Qt Quick • qml javascript console log • • sosun

      3
      0
      Votes
      3
      Posts
      1073
      Views

      sosun

      @dcape yeah, you're absolutely right. thanks for your efforts. I was thinking about conflicts and checked widthChanged() with auto-completion - this is why i decided not to change the title of js function. Thanks, again ;)

    • M

      In-App Console
      General and Desktop • console qml qtwidgets • • Maxim DC

      4
      0
      Votes
      4
      Posts
      1427
      Views

      Chris Kawa

      Oh, then it has nothing to do with a console or a console. qDebug is a text stream.

      To redirect output of qDebug use qInstallMessageHandler.

    • S

      CMD embedded in GUI Applications.
      General and Desktop • qterminal console qconsole terminal cmd textedit • • sp00lin9

      5
      0
      Votes
      5
      Posts
      2803
      Views

      SGaist

      Build and install QTerminal, then you can use it like other libraries

    • R

      QProcess can't read/write to some console applications?
      General and Desktop • qprocess console piping redirect • • r.kull

      4
      0
      Votes
      4
      Posts
      1769
      Views

      SGaist

      If it needs a named pipe then you should ask the author.

      AFAIK, you should be able to connect to a named pipe using QLocalSocket

    • V

      [Solved] QFileSystemWatcher parallel to console application
      General and Desktop • qfilesystemwatc console application parallel signal & slot files • • Varius

      4
      0
      Votes
      4
      Posts
      2306
      Views

      SGaist

      @Varius said:

      thread = new QThread(this);
      console->moveToThread(thread);

      IIRC, these lines are doing more than you think they do. thread's parent is your object, then you move your MyObject instance to thread, so all objects who are child of your MyObject instance are moved the thread. So thread will be moved to itself.

      All in all, you should rather have thread in your main as a stack object