Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • App crashes clearing QComboBox

    Unsolved qcombobox crash clear
    9
    0 Votes
    9 Posts
    4k Views
    Z
    When clear() function is called, currentIndexChanged(int index) function also will be called with index = -1. So if you uses index at some variables, it cause the memory faults. So you have to add the following code at the very first line. if(index <0) return; I hope this will be helpful.
  • 0 Votes
    9 Posts
    4k Views
    SGaistS
    @SimonSchroeder if using GPL, then yes, people can request the sources of the application and the author has to provide them. For LGPL, you can keep your code private but you have to provide any and all changes you may have applied to your LGPL dependencies. This is beside the fact that people shall be able to replace these LGPL dependencies with their own build which make static builds pretty cumbersome to abide to (not impossible though).
  • How to check if font do support characters (codepoints?)

    Unsolved
    2
    0 Votes
    2 Posts
    576 Views
    KH-219DesignK
    Caveats: On a day-to-day basis I work in C++ and rarely in python. Furthermore, I have not attempted any of what I am sharing here. However, it seems that using the lower-level C libraries like libfreetype and/or harfbuzz, this is possible. So it seems likely to me that someone has created a python wrapper of some kind that would expose it in python. Apparently (in C), the libfreetype function FT_Get_Char_Index will return 0 if the desired glyph does not exist in a given font: http://refspecs.linux-foundation.org/freetype/freetype-doc-2.1.10/docs/reference/ft2-base_interface.html#FT_Get_Char_Index And here is an example of someone using pyharfbuzz in a similar way: https://askubuntu.com/a/1186237/231504
  • This topic is deleted!

    Solved
    4
    0 Votes
    4 Posts
    97 Views
  • QML Image Cannot open CMake qrc

    Unsolved qt6.5 qml qrc cmake qt creator 10.0
    4
    0 Votes
    4 Posts
    2k Views
    semlanikS
    @Kevin470 The qt_standard_project_setup function doesn't set CMAKE_AUTORCC flag, only UIC and MOC. So you need to add: set(CMAKE_AUTORCC ON) before calling qt_add_executable.
  • Monitoring OpcUa nodes does not work always

    Unsolved
    2
    0 Votes
    2 Posts
    182 Views
    M
    @Mark81 I tried to check the signal enableMonitoringFinished and I get a success: void MyOpcUa::enableMonitoringFinished(QOpcUa::NodeAttribute attr, QOpcUa::UaStatusCode statusCode) { qDebug() << attr << statusCode; } QOpcUa::NodeAttribute::Value QOpcUa::Good
  • QTextStream readAll issue

    Unsolved
    2
    0 Votes
    2 Posts
    393 Views
    sierdzioS
    @Megamouse for such big files I recommend using the stream part of QTextStream and read file in chunks :D It really gives amazing performance improvement, regardless of which Qt version you are using. It will lower both CPU and RAM usage by a lot. Talking from experience here :-) Regarding the slowness issue: this sounds like something Qt devs should look into. Please consider reporting it on Qt bugtracker!
  • Show 3D model of GLB file in Qt window

    Unsolved
    3
    0 Votes
    3 Posts
    870 Views
    S
    Hi @ChrisW67 , Thanks for your reply. This happens in my development machine. Plugins like "assimpsceneimport.dll, gltfsceneexport.dll, gltfsceneimport.dll" are available in my QT installation. Also, my filepath exists. gfem.GLB file is valid and I could load the file in the viewer you have recommended. I am using Qt open source version. Is Qt 3D available only for commercial version ? Thanks, Sridharan
  • Exploratory Data Analysis (EDA) and Visualization - Identifying Insights in a Dataset

    Unsolved
    2
    0 Votes
    2 Posts
    482 Views
    Pl45m4P
    @Aliviya Interesting... and what has Qt to do with it?
  • Qt 5.15.2, Mac OSX and PostgreSql

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    SGaistS
    Seeing the PostgreSQL version you have (9.6), I am fairly certain that your issue is that you have an Intel only build or a ppc64/x86_64 at best.
  • This topic is deleted!

    Unsolved
    7
    0 Votes
    7 Posts
    34 Views
  • Not all possible target environments can be supported due to missing compilers

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    MehrshadM
    @hskoglund I created the new topic.
  • How to auto scale screen resolution

    Unsolved
    6
    0 Votes
    6 Posts
    820 Views
    A
    @LT-K101 Have You Found Solution in This issue ?
  • Using ffmpeg from QtMultimedia to set RTP as container media format

    Unsolved
    7
    0 Votes
    7 Posts
    752 Views
    R
    @SGaist thanks for the reply... Although ffmpeg does support RTP, I Don't see if it's available on all supported platforms or only on some. As an alternative, I found this library https://github.com/ultravideo/uvgRTP I'll see if I can make something of it and integrate it with QtMultimedia, apparently if I get a stream of H264 (AVC) or H265 it will wrap it into (S)RTP, although only works on Windows, Mac and Linux, it would be cool if I get it to work also on iOS and Android (the platforms covered by my Qt subscription). Maybe I'll keep this open, if I manage to get it working it could help someone else.
  • Qt detect system dark/light mode?

    Unsolved
    5
    1 Votes
    5 Posts
    1k Views
    G
    @JonB well there are reasons, I want to set the default style based on wether the user has dark mode on or not, but I need to set it with QGuiApplication::setStyle(QStyle *style) before it is created to not break/disable CLI arguments (e.g. -style fusion) and environment variables.
  • Can't use built in SQLite functions after building SQLite plugin in Qt 6.5.1

    Solved
    6
    0 Votes
    6 Posts
    402 Views
    Christian EhrlicherC
    @ioki9 said in Can't use built in SQLite functions after building SQLite plugin in Qt 6.5.1: I thought that linking to Qt SQLite was enough after rebuilding plugin and using header. It can't - it does not export the sqlite functions in any way (why should it).
  • Where the hel do I find a list of functions for signals?

    Unsolved
    4
    0 Votes
    4 Posts
    263 Views
    LahearleL
    @Christian-Ehrlicher That's probably what I was looking for, thanks. I was looking at the "signals and values pages" before, which of course had nothing.
  • 0 Votes
    3 Posts
    256 Views
    Christian EhrlicherC
    What does '4k' mean? 4000x2000 pixel? If so you need at least 400020004bytes = 32MB of free, contiguous memory. As @JonB already said - please show use your loading and displaying code. Also it's not a good idea to load an image every 0.1 second.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Nested project structur Qt 5.15.2 MSVC2019 linker problem

    Solved
    6
    0 Votes
    6 Posts
    471 Views
    SGaistS
    @kluszon yes, it's explained in the Creating Shared Libraries.