Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Capture Alt+Shift keypress...

    Unsolved
    5
    0 Votes
    5 Posts
    538 Views
    K
    @JonB I'm on Fedora... In any case I would expect to receive the keys before the OS as I have the focused window with the input...
  • Search for folder when the directory is not known

    Unsolved
    2
    0 Votes
    2 Posts
    184 Views
    JonBJ
    @Ylvy What would you expect to be any faster than this? It has to search all directory entries recursively on all mounted volumes. That takes a while :) Linux filing systems don't have a magical call for finding things other than you looking at the filename retrieved, and these days I don't think Windows has a faster native call. This is also why OSs offer features like Windows "indexing" or Linux locate, so you can look up previously cached answers quickly!
  • Save data to a temporary file and clear it from RAM

    Solved
    6
    0 Votes
    6 Posts
    718 Views
    S
    @SGaist, sorry for the late reply. That is exatcly what I was looking for. Combining the readyRead() signal and buffer size limit allowed me to save data to a temporaray file without using a lot of memory. Thanks.
  • Qt5Core dll gets overwritten at compilation

    Solved
    7
    0 Votes
    7 Posts
    976 Views
    G
    @GeorgesS said in Qt5Core dll gets overwritten at compilation: Hi, I have a c++ project using qt 5.12.10 and I recently upgraded it so it can work on 64-bits system. When I get my dll from APP\Qt\qt5.12.10... repository, it works fine but when I compile (release or debug), my qt5core.dll in my project gets overwritten ("modified on" compilation time). Then, when I launch my project, every icons in my mainwindow won't show. If I replace the qt5core.dll with the one from the APP\Qt\qt5.12.10... repository, my icons are displayed properly. Does the compilation look for the dll where it shouldnt ? Or is there something in .pro file that overwrites it ? It only does this for qt5core. I am using core, network and gui modules. Compile with QMake, MinGW-64 bits and using windeployqt. It's a project that I inherited from so I'm not so familiar with it. Double-check the environment and build settings in your project to ensure that the correct paths to the Qt DLLs are set. Make sure that the directory containing the DLLs from the APP\Qt\qt5.12.10 repository is listed before any other directories in the system PATH variable.
  • 0 Votes
    16 Posts
    1k Views
    Q
    @JonB I have found that my code has issue due passing value using pointer. so passing by value have resolved the Crash issue. Now my error list is not passed by pointer its passed directly. This issue identified by GDB. As well as valgrind tool also helps.
  • QWizard and radio buttons

    Unsolved qwizardpage qradiobutton qwizard
    2
    0 Votes
    2 Posts
    518 Views
    JonBJ
    @voltron I don't read QWizardPage::registerField() as making the widget mandatory to fill out? Only if you choose to make it compulsory.
  • Low Level Audio & ffmpeg backend

    Unsolved
    1
    0 Votes
    1 Posts
    141 Views
    No one has replied
  • How to get a backtrace from qDebug()

    Unsolved
    8
    0 Votes
    8 Posts
    974 Views
    PerdrixP
    @SimonSchroeder Good news ...
  • Can't find files even though files are found

    Solved
    2
    0 Votes
    2 Posts
    397 Views
    serkan_trS
    @serkan_tr I added the variable "PKG_CONFIG_PATH" to the environment variables and the problem was solved
  • binary '%': 'QString' does not define this operator

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    JonBJ
    @ChrisW67 Thanks. I don't totally understand how this works. Given that you write QString % QString, why does C++ go off and match that against some QStringBuilder template?
  • Why my Qt has different resolution with my computer?

    Unsolved
    5
    0 Votes
    5 Posts
    484 Views
    E
    @SimonSchroeder No I only use the screen of my laptop
  • Dependency Issue of Statically Compiled App Deployment

    Solved
    7
    1 Votes
    7 Posts
    1k Views
    S
    For Linux deployment we are using AppImages. Besides that there is also Flatpack and Snap, but we settled on AppImage. These will package all dynamic libraries and the executable into a single image that can be executed and launches the actual app. Still, you'll need to use an older Linux distribution (some required tools check for this). We are using a combination of linuxdeploy and linuxdeployqt to create the AppImage. linuxdeployqt is better at fetching the Qt dependencies, but other things work better with linuxdeploy. This would resolve your glib issues as the lib would be included in the AppImage. This is not 100% fool proof. However, we compile on CentOS 7 and it works on CentOS (and most likely also RedHat), openSuSE (and most likely also SuSE Enterprise), and Ubuntu 18 and upwards. We used to have an additional AppImage for Ubuntu 16, however this did not work on Ubuntu 20 anymore. We only have very few clients using the Linux version of our app and they mostly use the most recent Ubuntu version. But so far, we don't have any bigger problems with this approach.
  • selection bug in frozenColumn example

    Unsolved
    3
    0 Votes
    3 Posts
    348 Views
    Alex SUNPPA
    @SGaist I have checked the bug with frozenColumn example on Qt 6.4.3. It is still impossible to select an extended range, that includes cells from two QTableView, with mouse clicks. I suspect that this is a bug that cannon be fixed with additional code from me. Because the addresses of currently selected cells in each table view are the same (as it should be). And also the selection with keyboard is okay. Somehow mouse clicks select extended range just inside single table view (though the table views have the same selection model). Can someone give me an advise about possible workaround for this selection bug?
  • Rotating Cube Visualization Best Approach

    Unsolved
    3
    0 Votes
    3 Posts
    392 Views
    X
    @mzimmers thank you for your message. Yes i had a look at few examples. But then I get confused because of the terms like Camera, Light, Euler Angles etc. I guess all these terms are important for 3d visualization. Can you or someone suggest me some good tutorial on this or you guys think that Qt documentation is sufficient? Because I couldn't understand these terms and hence will not be able to rotate the 3d Cube.
  • DelayHook Error Qt 6.4.3

    Solved qt 6.4.3 error delayhook windows 11
    6
    0 Votes
    6 Posts
    6k Views
    W
    @Kevin470 Hi, I have exactly the same problem with you and i also have Trend Micro Security on my laptop. I have been searching this issue for a few days. Have you tried to close the antivirus software? Could this solve the issue?
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    20 Views
  • How to measure performance improvement of a multi-threaded GUI application?

    Unsolved
    2
    0 Votes
    2 Posts
    284 Views
    SGaistS
    Hi, Which performance are you looking for ? One important note: just throwing threads at your problem is not the solution. You also have to take into account what they do. For example, if you have a disk intensive task and try to run many of them in parallel, you'll quickly see a performance hit because of the speed of the disk.
  • Height of QWidget containing two QLabels

    Solved
    3
    0 Votes
    3 Posts
    288 Views
    PerdrixP
    @mpergand Thank you - that's what I needed!!! I adjusted the layout top and bottom margins to 2 and also the spacing to 2. That worked a treat! Thanks again, David
  • where is "moc_qnamespace.cpp"? removed?

    Unsolved
    2
    0 Votes
    2 Posts
    201 Views
    Chris KawaC
    @Felix_F_ said: So just curious, where is it gone? To include heaven :) See this commit description for explanation.
  • Cpack fail for library depending on qtmqtt COMPONENT on windows

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