Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.1k Posts
  • Using QCommandLineParser with QGuiApplication

    Solved command line gui qml c++
    3
    0 Votes
    3 Posts
    108 Views
    A
    That's really helpful. thank you.
  • Strange ListView UI Crash upon scrolling really quickly

    Solved
    2
    0 Votes
    2 Posts
    37 Views
    R
    After countless hours of debugging solution was really REALLY obscure. I had my QURL for QQmlApplicationEngine set to a loading screen then creating the App component from there. Qt really did not like this. returning the Original App.qml as my main URL and then running engine.load for my loading screen. engine.load(url); engine.load("qrc:/qt/qml/ExplorariumContent/LoadingScreen.qml"); TLDR: I used a very buggy method to load the app which caused ListView to freak out. Component { id: appComponent App {} } Connections { target: loadingScreenManager function onLoadApp() { var appWindow = appComponent.createObject(null) appWindow.effect.start() Qt.callLater(function() { root.close() }) } }
  • my images is not showing up in the application

    Solved
    12
    0 Votes
    12 Posts
    103 Views
    S
    Alright I finally solved the issue. I added this to my CMakeLists.txt set(sources main.cpp) qt_add_resources(sources res.qrc) And ${sources} in the qt_add_executable list So now this is on top of my CMakeLists.txt set(sources main.cpp) qt_add_resources(sources res.qrc) qt_add_executable(4-WindowDifference WIN32 MACOSX_BUNDLE main.cpp mainwindow.cpp mainwindow.h res.qrc ${sources} )
  • 0 Votes
    6 Posts
    99 Views
    T
    Ok, thanks all. Looks like the application I downloaded was broken. The distributor didn't include everything that would allow it to run on a basic system. Thanks to everybody for your answers.
  • Strange crash in QApplication constructor

    Unsolved crash qcoreapp
    18
    0 Votes
    18 Posts
    630 Views
    J
    @SGaist I know it's a macro, I've already tried expanding it myself; the result was exactly the same. I'll try to analyze the generated code, thanks.
  • Model-view checkstate signal

    Solved
    15
    0 Votes
    15 Posts
    381 Views
    SGaistS
    @blossomsg There's no reason for that slot to be in the model. Depending on how you want to integrate that with Maya, create your own custom view on top of the model that will translate that information in whatever is needed for Maya. A "view" does not mandatory mean a tree or a table, it's really whatever uses the model as a source of information.
  • [Qt6.8.3] Why does QToolBar perform inconsistently on qt5 and qt6?

    Unsolved
    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • My qt exe size is very huge

    Unsolved
    13
    0 Votes
    13 Posts
    269 Views
    Christian EhrlicherC
    I can't test this ancient version but would guess you installed a static Qt version. Therefore all is linked directly into your executable which explains the size.
  • Migrating from Qt3 to 5.15.13

    Solved
    15
    0 Votes
    15 Posts
    511 Views
    lukas_kosinskiL
    Well, I am surprised to hear that someone might want to exclude unit tests. The project is going to grow. It always does. It's not possible to remember every little aspect of the project. And if the team changes and someone new joins, how on earth are they going to make sure there is no butterfly effect in a huge and old codebase that they do not know? That's sad. It reminds me of a similar situation I had a long time ago as a young programmer, saying that we need CI/CD and unit tests.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Undocumented automatic metatype registration in Qt6?

    Unsolved metatype signals & slots qvariant qt6
    7
    0 Votes
    7 Posts
    3k Views
    R
    I faced the same behavior, which was unexpected and undocumented. I was debugging Qt, and at the end there is the following fallback in their code. int registerHelper() const { if (d_ptr) { if (int id = d_ptr->typeId.loadRelaxed()) return id; return registerHelper(d_ptr); } return 0; } int QMetaType::registerHelper(const QtPrivate::QMetaTypeInterface *iface) { Q_ASSERT(iface); auto reg = customTypeRegistry(); if (reg) { return reg->registerCustomType(iface); } return 0; } qtbase\src\corelib\kernel\qmetatype.cpp
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    31 Views
    No one has replied
  • 1 Votes
    4 Posts
    132 Views
    jeremy_kJ
    At a glance, it's not obvious that the xcb QPA (qtbase/src/plugins/platforms/xcb/xcb.pro) plugin won't work with recent macOS if the requisite supporting libraries and headers are present. Homebrew lists a few potential matches for "brew search xcb", including "libxcb".
  • Embedded QWindow on X11: black background

    Unsolved
    1
    0 Votes
    1 Posts
    44 Views
    No one has replied
  • pre-compiled QT headers

    Unsolved
    2
    0 Votes
    2 Posts
    74 Views
    Pl45m4P
    @JacobNowitsky What's so hard about creating a PCH file like // myApp_pch.h #include <QApplication> #include <QWidget> and then enable the PCH support depending on your build system?! BTW: The video even explains how to set this up... so what do you mean?!
  • QString::compare: Strings with same output compare as different?

    Solved
    2
    0 Votes
    2 Posts
    71 Views
    A
    Got it. By-value lambda capture of const reference...
  • custom plot

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    A
    @Rockerz said in custom plot: @JonB I tried but I got tar.gz file extracted and add these file (qcustomplot.h, qcustomplot.cpp) I'm getting many unresolved errors where to get the dll file ? I searched and I download from official website only tar files I found (https://www.qcustomplot.com/index.php/introduction) QCustomPlot doesn’t provide a DLL — you must compile the .cpp/.h files into your project. Just add them to your Qt project and rebuild; no external DLL needed.
  • Does Qt Support HDR Image/Video Rendering?

    Unsolved
    2
    0 Votes
    2 Posts
    103 Views
    SGaistS
    Hi, Did you already check QVideoFrameFormat and its friends to check whether they fit your need somehow ?
  • Linking external .dll with CMake

    Solved
    3
    0 Votes
    3 Posts
    112 Views
    B
    @SGaist Thanks for the reply, they didn't provide the .lib files in the source code, so I had to generate them myself. I was able to find https://wiki.videolan.org/GenerateLibFromDll explaining how to do it and got the application to run now, thanks!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied