Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to add elements automatically in a window?

    Unsolved
    2
    0 Votes
    2 Posts
    320 Views
    SGaistS
    Hi and welcome to devnet, Do you mean something like a QTableWidget ?
  • Terminal Example doesn't showing any data.

    Unsolved
    5
    0 Votes
    5 Posts
    552 Views
    raven-worxR
    @millyvolt said in Terminal Example doesn't showing any data.: @raven-worx as i understand QSerialPort library is made for working with serial port, and i working with Qt on Windows so it must working with com port on windows PC. i never said that it wont work, i just said it wont work out of the box in case you are trying to connect to a terminal. its still not clear for me if you are trying to connect to a shell terminal or just want to communicate with "arbitrary" data sent over the port.
  • 0 Votes
    5 Posts
    1k Views
    Pablo J. RoginaP
    @devjb said in When using id based translations, how to show the engineering english text, if no translator has been installed: the Qt framework itself, despite containing a lot of strings and thus matching the description does not use the id based system at all. I think that's one strong advantage of the "string based" translations schema that Qt proposes. Even with no translator loaded, or missing .qm files the application/library can still display some "meaningful" string, the one used to do the query for a translation. Regarding "Engineering English", if you check the example in the same documentation you pointed to, you'll see that //% comment actually ends up as the "source" field in the .ts file, see: Text { id: backTxt; //: The back of the object, not the front //% "Back" //~ Context Not related to back-stepping text: qsTrId("id-back-not-front"); } The example text-ID-based user interface text from above results in the following content in the .ts file: <message id="id-back-not-front"> <source>Back</source> <extracomment>The back of the object, not the front</extracomment> <translation type="unfinished"></translation> <extra-Context>Not related to back-stepping</extra-Context> And very important, that whole example assumes that you'll go through the full cycle: lupdate (create .ts files), manual translation via Linguist, lrelease (create .qm files), app installing translator so the value of the source field (in this case //% "Back" will display as the translation. I'd suggest that you use a plain-text-based approach for translation of your library. Qt framework itself is a long time example it works fine. I'd only recommend going with text-ID-base approach if you already have such translations using such schema (i.e. existing translations shared by lots of applications)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • QNetworkAccessManager SSL display request content

    Unsolved
    5
    0 Votes
    5 Posts
    427 Views
    Alex94102A
    @aha_1980 I want to be able to visualize the request from the QT site, there should be no reason why that shouldn't be available. Also SSL traffic cannot be decrypted unless you get a hold of the key. That would be a different problem that I shouldn't have to get into. Reasonable?
  • This topic is deleted!

    Unsolved
    7
    0 Votes
    7 Posts
    119 Views
  • QCoreApplication::setLibraryPaths from CMake

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    C
    Another solution is to set the environment variable during the software installation. Using Wix: <CPackWiXPatch> <CPackWiXFragment Id="CM_DP_lib"> <Component Id="EnvQml2ImportPath" Guid="****"> <CreateFolder /> <Environment Action="set" Id="Qml2ImportPathEnv" Name="QML2_IMPORT_PATH" Part="last" Permanent="no" Separator=";" System="yes" Value="[INSTALL_ROOT]qt"/> </Component> </CPackWiXFragment> <CPackWiXFragment Id="#PRODUCTFEATURE"> <ComponentRef Id="EnvQml2ImportPath" /> </CPackWiXFragment> </CPackWiXPatch> Then, use this enviroment variable in the cpp: QStringList pluginsPaths; pluginsPaths << std::getenv("QML2_IMPORT_PATH"); QCoreApplication::setLibraryPaths(pluginsPaths);
  • Qt Creator IDE Debugger: String character sequence

    Solved
    2
    0 Votes
    2 Posts
    245 Views
    aha_1980A
    Hi @fem_dev, that looks like QTCREATORBUG-20756. Do you have the Python dumpers enabled? You may want to add your use case to the mentioned bugreport. Regards
  • Stack overflow when using MouseMoveEvent

    Unsolved
    8
    0 Votes
    8 Posts
    821 Views
    Christian EhrlicherC
    @infestor said in Stack overflow when using MouseMoveEvent: Thats where the stack overflow should come from i guess Simply looking at the backtrace will show it, it will also show you why it's a recursion.
  • If override QGraphicsView::resizeEvent, should I call the base function as well?

    Unsolved
    4
    0 Votes
    4 Posts
    679 Views
    Christian EhrlicherC
    You really should call the Qt base class implementations in all cases - https://code.woboq.org/qt5/qtbase/src/widgets/graphicsview/qgraphicsview.cpp.html#_ZN13QGraphicsView11resizeEventEP12QResizeEvent
  • Qt3DExtras: difference between Windows and Linux

    Solved
    4
    0 Votes
    4 Posts
    467 Views
    G
    @jsulm I now have SceneModifier working, when the program is invoked in a terminal. I'm afraid I can't say what it is that I've done that got it to work.
  • Adding Qt GUI to existing command line program?

    Unsolved
    18
    0 Votes
    18 Posts
    8k Views
    M
    In case there is anybody else interested in the QProcess class for process communication, this is a great example of how to use it.
  • No Kits available: Local PC's Current State: Unknown

    Unsolved
    8
    0 Votes
    8 Posts
    445 Views
    SGaistS
    Qt Creator is an IDE so it will help you in that regard as it integrates the functions that Designer provides as well. In fact, Designer existed before Qt Creator. Since you wrote that you want to use PySide2 but you are using PyCharm to code in Python, I'm just suggesting to use Designer directly. Personally, I build all widgets by hand whether in C++ or in Python.
  • trouble inserting a row in SQLite database, Error: " Parameter count mismatch"

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Tricky one ! 4.9.2 ? This one doesn't exists, the 4 series ended at 4.8.7. Anyway, glad you found out and thanks for sharing ! Since you have it working now please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
  • When a QMdiSubwindow is minimized, the restore icon becomes unreachable

    Solved
    5
    0 Votes
    5 Posts
    556 Views
    SGaistS
    Can you test that with a more recent version of Qt ? The current LTS is 5.12.5 and release is 5.13.1.
  • Limiting the amount of mouseMoveEvents

    Unsolved
    2
    0 Votes
    2 Posts
    138 Views
    SGaistS
    Hi, What exactly are you trying to achieve ?
  • Rebuild of libqxcd.so required

    Unsolved
    10
    0 Votes
    10 Posts
    733 Views
    mrjjM
    @bmoul well quick search says around https://doc.qt.io/archives/qt-5.11/supported-platforms-and-configurations.html
  • QMenuBar does not show up

    Solved
    3
    0 Votes
    3 Posts
    346 Views
    S
    i foudn the issue. I added annother string with the string constructor as you recommended. The menu showed up. Then I realized that I don't give my menu a name. So i added mLanguageMenu->setTitle(tr("Language")); in the void MainWindow::createLanguageMenu() method and now it works fine.
  • QTemporaryFile move?

    Solved
    8
    0 Votes
    8 Posts
    717 Views
    fcarneyF
    @jonb said in QTemporaryFile move?: potentially a lot of temporary HTML files hanging around while the app is running Yeah, that is a potential. They are small and are tied to printing. The idea is to use external app to print this.
  • How to add libraries to the program in MacOS?

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    M
    Its work QMAKE_POST_LINK += "~/Qt/5.12.0/clang_64/bin/macdeployqt $${TARGET}.app $$escape_expand( \\n\\t )"