Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    34k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • QApplication and NSApplication

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Unable to save PySide6 documentation

    Unsolved
    3
    0 Votes
    3 Posts
    45 Views
    C
    @SGaist Thanks! The approach I took was using this link to download "libclang-release_20.1.1-based-windows-vs2019_64.7z". Could I be missing some intermediary steps that come after the install and before building Qt? FWIW I'm also skeptical that I've installed libxml2 and libxslt correctly but am having a hard time finding much that goes in depth there. Also should probably mention that currently I'm using the Windows 11 x64 machine.
  • Translations for qtbase do not appear

    Unsolved
    7
    0 Votes
    7 Posts
    80 Views
    Christian EhrlicherC
    https://doc.qt.io/qt-6/localization.html#use-qt-module-translations
  • Disable DPI scaling in QT 6?

    Unsolved
    3
    2 Votes
    3 Posts
    173 Views
    M
    @martin_ky That's what I've been doing for the app I'm developing, can this cause any problems for non resizable apps?
  • Issue with WIndowStaysOnTopHint on Linux RHEL8 with X11 Display. Qt version 5.15.3.

    Unsolved
    2
    0 Votes
    2 Posts
    23 Views
    SGaistS
    Hi, From the doc of WindowStaysOnTopHint: Informs the window system that the window should stay on top of all other windows. Note that on some window managers on X11 you also have to pass Qt::X11BypassWindowManagerHint for this flag to work correctly. Did you also set Qt::X11BypassWindowManagerHint ?
  • Installing CMake static target with QML module

    Unsolved
    2
    0 Votes
    2 Posts
    86 Views
    M
    Also facing the exact same issue.
  • 0 Votes
    3 Posts
    145 Views
    D
    are u solved now?
  • Using ASM (x86) with Qt on MacOS with CMake. How?

    Unsolved
    5
    0 Votes
    5 Posts
    123 Views
    JonBJ
    6502 assembly, simple, elegant :) Bit limited on memory though...
  • 0 Votes
    14 Posts
    208 Views
    M
    @Pl45m4 I'm too stupid to fix it myself, and like I said, no experience with C++ OOP, only with microcontrollers. Explain me this though, wouldn't QMovie and AnimatedImage be one of the most popular QObjects, since it allows you to use custom asset animations to create your own widgets with different states, for example here's one using a single .gif file for cursor hover/exit: [image: 2qoYcg0.gif] It's a lot easier to do stuff in animation programs, then to, for example, create a cavalier projection algorithm for Qt, to get this extrusion animation
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • How to get the geometry of the screen on which the app is started

    Unsolved
    2
    0 Votes
    2 Posts
    31 Views
    C
    Is QGuiApplication::primaryScreen() useful?
  • Quick Qt 6 Migration Question

    Solved
    4
    0 Votes
    4 Posts
    62 Views
    SGaistS
    You're welcome ! If that answers your question, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so other forum users may know as well :-)
  • Not compilated Qt from sources

    Unsolved
    4
    0 Votes
    4 Posts
    68 Views
    JKSHJ
    Run the failing command manually from the Command Prompt and see what you get: cd /D C:\QtSource\ReleaseVS\Build\qtdeclarative\src\qmltyperegistrar && C:\QtSource\ReleaseVS\Build\qtbase\bin\rcc.exe --output C:/QtSource/ReleaseVS/Build/qtdeclarative/src/qmltyperegistrar/.qt/rcc/qrc_jsRootMetaTypes.cpp --name jsRootMetaTypes C:/QtSource/ReleaseVS/Build/qtdeclarative/src/qmltyperegistrar/.qt/rcc/jsRootMetaTypes.qrc Also, what version of Qt is this?
  • Sleep in QtScript

    10
    0 Votes
    10 Posts
    6k Views
    FlincoF
    I am returning to this old topic because I have a similar need. I use the Qt Installer Framework to install my Qt application written in C++. I should point out that with the Qt Installer Framework, you can create two types of installers: “online”, which downloads what it needs to install from a remote repository, and “offline”, which contains everything it needs. Offline installers have one drawback: they do not allow you to “update” from an older version to a newer one. As a result, if the software is already installed, you have to uninstall the previous version before installing a new one. At the moment, I cannot create an “online” installer (which would solve the problem), so I have come up with a workaround for the “offline” installer which, thanks to a Qt script, silently uninstalls the old version. Now, I need to insert a few seconds of “sleep” into the Qt script to give the uninstaller, which runs in the background, time to do its job. This is because users (including myself) are often a little too quick to move forward with the installation process and are told that “the destination folder is already in use” even though, when they try again a moment later, it is free and available for installation.
  • Migrating from MFC to Qt: How to install qtwinmigrate

    Unsolved
    6
    0 Votes
    6 Posts
    554 Views
    W
    After I deleted QWidget.*** from my test project now I am getting linker error like this. https://forum.qt.io/topic/137730/how-to-disable-linking-with-qt6entrypoint-in-qmake/6 But I do not know how to prevent QT qmake with QT Tools to remove the QT entrypoint. Do I have to add a qmake file to my project to set "CONFIG -= entrypoint"?
  • How to style QMenu right-arrow on hover using Qt Style Sheets?

    Unsolved
    3
    0 Votes
    3 Posts
    50 Views
    O
    @Pl45m4 Thanks—I totally forgot I had posted this before! I tried QMenu::right-arrow:hover but unfortunately it's still not working.
  • How to Style Hover on QMenu's Tear-off Area?

    Solved
    3
    0 Votes
    3 Posts
    181 Views
    O
    Sorry for the late reply—I actually forgot I had posted on the forum! I've now resolved the style sheet issue, and it's working as expected. Here's the snippet I used: QMenu::tearoff { background-color: #1A1A1A; height: 12px; border: none; background-image: url(linkIcons:menuLine2.png);} QMenu::tearoff:selected { background-color: #4D4D4D; height: 12px;} [image: 43160286-d023-4481-8714-1efa9398bf9e.png]
  • Page margin about QTextDocument

    Unsolved
    7
    0 Votes
    7 Posts
    562 Views
    C
    If you do not want the behaviour of QTextDocument::print() then do not use it. This is closer to your intent: #include <QPrinter> #include <QPrintDialog> #include <QTextDocument> #include <QApplication> #include <QPainter> int main(int argc, char *argv[]) { QApplication app(argc, argv); QTextDocument document; document.setHtml("<h1>Hello, World!</h1><p>This is a test document.</p>"); QPrinter printer; QPrintDialog printDialog(&printer); if (printDialog.exec() == QDialog::Accepted) { printer.setPageSize(QPageSize::A4); printer.setPageMargins(QMarginsF(0, 50, 10, 10), QPageLayout::Millimeter); QPainter p(&printer); document.drawContents(&p); p.end(); } return app.exec(); }
  • Add include directories from sub_directory to main application. How?

    Solved
    10
    0 Votes
    10 Posts
    176 Views
    B
    @Christian-Ehrlicher There were my bad. Always been developing when libraries inside of project tree and never been facing any troubles. Never been thinking that 'library-in-tree' is there common way or even requirement for CMake. For now started optimising developing process and environment because of huge amount duplicated-triplicated sources and got troubles when moved sources outside of the project tree. For now made everything clear for myself.