Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. console
    Log in to post

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

      13
      0
      Votes
      13
      Posts
      2719
      Views

      @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.
    • UNSOLVED Modbus problems when console is connected
      General and Desktop • widgets console modbus serialbus • • kalamondin  

      1
      0
      Votes
      1
      Posts
      424
      Views

      No one has replied

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

      2
      0
      Votes
      2
      Posts
      2364
      Views

      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.
    • UNSOLVED MSVC-2017x64 - WinRT Run & Console Issues
      General and Desktop • winrt console msvc2017 run uwp • • Uniflare  

      1
      0
      Votes
      1
      Posts
      402
      Views

      No one has replied

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

      15
      0
      Votes
      15
      Posts
      13421
      Views

      correct @Paul-Colby thanks
    • UNSOLVED [POSSIBLE BUG] QT Console Application appears in Application Output panel instead of Console Window
      General and Desktop • qt 5.7 console console applica • • CybeX  

      5
      0
      Votes
      5
      Posts
      2675
      Views

      Really very help full. Thanks for sharing your precious experiences movements.
    • UNSOLVED QT Console application - go back up one line and add text to current line
      General and Desktop • text console string formatting console applica • • CybeX  

      2
      0
      Votes
      2
      Posts
      828
      Views

      Hi, As silly as it may sound but wouldn't removing << std::endl from the checking line be enough ?
    • UNSOLVED Run Qt widget app on linux with no GUI
      General and Desktop • linux widgets console • • Bremenpl  

      26
      0
      Votes
      26
      Posts
      16185
      Views

      @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. :)
    • SOLVED How to add GUI to a Qt console application?
      General and Desktop • gui console pro file • • Zoltan  

      3
      0
      Votes
      3
      Posts
      5668
      Views

      @SGaist Thank you, I will try it!
    • UNSOLVED Qt Console Application - Print colored text
      General and Desktop • color console print • • AliReza Beytari  

      12
      0
      Votes
      12
      Posts
      8788
      Views

      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).
    • UNSOLVED Qt app with both Console and GUI components
      General and Desktop • gui libraries console • • tendim  

      5
      0
      Votes
      5
      Posts
      2649
      Views

      By the way, in QApplication's detailed documentation, you have an example of how start an application in "no-gui" mode.
    • UNSOLVED Last debug does not print anything :/
      General and Desktop • qapplication qdebug console • • sami1592  

      5
      0
      Votes
      5
      Posts
      1256
      Views

      @hskoglund Thanks for the info
    • UNSOLVED Running a console application within an GUI application
      General and Desktop • qtcreator qt5 gui console • • pauliedunne  

      6
      0
      Votes
      6
      Posts
      3448
      Views

      I don't understand what you mean, Qt is a GUI library by design.
    • 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
      971
      Views

      @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 ;)
    • In-App Console
      General and Desktop • qml qtwidgets console • • Maxim DC  

      4
      0
      Votes
      4
      Posts
      1329
      Views

      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.
    • CMD embedded in GUI Applications.
      General and Desktop • console textedit terminal cmd qterminal qconsole • • sp00lin9  

      5
      0
      Votes
      5
      Posts
      2449
      Views

      Build and install QTerminal, then you can use it like other libraries
    • QProcess can't read/write to some console applications?
      General and Desktop • qprocess console redirect piping • • r.kull  

      4
      0
      Votes
      4
      Posts
      1641
      Views

      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
    • [Solved] QFileSystemWatcher parallel to console application
      General and Desktop • signal & slot application console files qfilesystemwatc parallel • • Varius  

      4
      0
      Votes
      4
      Posts
      2039
      Views

      @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