Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Frame color/palette of QGroupBox?

    Unsolved qpalette qgroupbox qstyle qproxystyle
    4
    1 Votes
    4 Posts
    947 Views
    Christian EhrlicherC
    @RokeJulianLockhart said in Frame color/palette of QGroupBox?: That seems worth filing a bug about. A style can do whatever it likes. Here it was decided to paint them through a semi-transparent png. It's maybe not nice but... if you come up with an equivalent solution which does exactly the same with some palette stuff - feel free to post a patch.
  • Error when building Qt5.15.16 from source

    Unsolved
    13
    0 Votes
    13 Posts
    963 Views
    hskoglundH
    Hi, good advice of @Christian-Ehrlicher 's to skip it, otherwise there is a solution here: https://bugreports.qt.io/browse/QTBUG-122589
  • Qt Stripe payment integration

    Unsolved
    2
    0 Votes
    2 Posts
    156 Views
    Axel SpoerlA
    I guess you mean to integrate Stripe by using its REST API? You can check this blog, to see how this can be implemented in your desktop application.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • 0 Votes
    1 Posts
    88 Views
    No one has replied
  • Expanded client area in QMainWindow

    Unsolved
    5
    0 Votes
    5 Posts
    230 Views
    H
    @StudentScripter I used to be able to do this using custom macos-specific code (see https://github.com/ahrm/sioyek/pull/1015) but it has stopped working in recent Qt versions (I think after 6.8 but I am not 100% sure).
  • cmake for QtCreator fails

    Unsolved
    2
    0 Votes
    2 Posts
    117 Views
    hskoglundH
    Hi, try running the MaintenanceTool again and go into Additional Libraries: [image: f3dc5e60-5306-4069-b9f2-e04397ce87f8.png]
  • UI changes not reflecting when debugging

    Solved shadow build exceptions
    6
    0 Votes
    6 Posts
    2k Views
    osirisgothraO
    Occasionally I encounter similar problems. On occasion the project.pro.user file gets corrupted which can cause undesired behavior. In that case, removing the build directory is not enough. This is because clean essentially removes the build files. But if the project configuration is telling build to clean/compile things the wrong way, it makes sense removing it would not help. Removing the pro.user file should, though you will need to reconfigure a little (unless you want to check through it which is a pain). I found just deleting it and letting QtCreator regenerate it fixes most problems. I have yet to need to remove the .pro file, but that would be a last resort. I recommend to stick with qmake to make things simpler for your users until you absolutely need something beefier (unless your build team has a hard-set build environment). Making major changes to project settings is a great way to mess things up, you'd be surprised. Some settings have effects on certain project configurations that are not always spelled out in the documentation, if at all. Notice that "QtCreator The Application(tm)" does not have the greatest level of detail in its shipped documentation, and glosses over many of its features giving you just the bare minimum detail on some (but not all) items. I have noticed, however that it is slowly getting better. I think we just need more people contributing :3. Including the top page, the "Qt Creator Documentation" has a rather small number of (13) pages(!) which is hardly enough room to describe every single item within QtCreator. The number 13 is an unlucky number indeed. :3
  • Why the opengl painting is blur on High DPI display

    Unsolved
    3
    0 Votes
    3 Posts
    154 Views
    S
    It's because your application is not hiDPI aware and windows does scaling by simply upscaling the bitmap that your application rendered in the window's back buffer before compositing.
  • Error while compiling Qt6.9.0 on debian 12

    Solved
    4
    0 Votes
    4 Posts
    185 Views
    Christian EhrlicherC
    @YamiTheWitch said in Error while compiling Qt6.9.0 on debian 12: building without another error? c++: fatal error: Killed signal terminated program cc1plus so it was killed because the machine ran out of memory
  • Syntax highlighting in a QLineEdit

    Solved
    7
    1 Votes
    7 Posts
    1k Views
    RokeJulianLockhartR
    @Caeden, is your implementation available anywhere? It being in Python is valuable for me. BTW, for anyone else who sees this in the future, there is also stackoverflow.com/q/53127561.
  • Qt Quick controls on Qt Widgets

    Unsolved
    3
    0 Votes
    3 Posts
    161 Views
    1
    Cool!.. thanks for answering..
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • qDebug() etc. has stopped appearing in my application output

    Unsolved
    9
    0 Votes
    9 Posts
    983 Views
    T
    Hello, thank you for your help. I have already installed the latest version and tried several other things and still nothing has helped me. maybe the problem is really due to the error https://bugreports.qt.io/browse/QTBUG-63789. Currently only deactivating 'C++ exception' has helped me.
  • Need for setWIndowIcon()/setIcon()

    Unsolved
    5
    0 Votes
    5 Posts
    310 Views
    A
    I haven't done it, but it seems possible to set application icons on Linux, too....if you know the desktop environment beforehand. For full reference, please see https://doc.qt.io/qt-6/appicon.html
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Random unfocusing in QtCreator's widgets outline viewer

    Solved
    8
    0 Votes
    8 Posts
    471 Views
    osirisgothraO
    Ugh I did forget, so sorry, my bad... Qt Creator 14.0.2 Based on Qt 6.7.3 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64) Built on Sep 27 2024 00:13:58 From revision 3004ebc0af Anyway, Finally Narrowed it all the way down to: Menu Bar-> Edit[menu]-> Preferences[submenu]-> C++[left-hand category list item]-> Clangd[tab item]-> Background Indexing[combo box, third setting in the list]-> <<Any setting other than "off">> - yes I checked them all and only "off" solves it Workaround: **Changing the combo box from its current setting to "off" solves the issue. ** Again, what appears to be happening is clang updates the progress bar in the status area below -> and when it seems to be finished, the designer area (the main form and widgets editor/preview area) is refocused. It's just a guess but maybe there is a slot setting the designer focus back to after the indexing is invoked, completed, or otherwise signaled in the background. This workaround seems to work for me for now, so I'd say it's solved along with the issue that was filed. Thanks. I hope this helps out people that run into this issue in the future.
  • Is there an easy way to log enums, bool with literal? If so, what does it look like?

    Unsolved
    8
    0 Votes
    8 Posts
    232 Views
    JonBJ
    @RobertSommer My answer is for when you use Q_ENUM() for your enum, which I thought was what you were doing. The code you show has no Q_ENUM(). If you expect something about being able to convert a plain C++ enum with no Q_ENUM() then it has nothing to do with Qt. For that you can search c++ enum to string to discover (C++ does not offer it natively). Other than that I don't know about your compiler error. Did you try the single statement code I quoted? Note how the comment there did say: // MyEnum needs to be declared with Q_ENUM macro
  • open62541

    Unsolved
    3
    0 Votes
    3 Posts
    251 Views
    R
    @casina When your QOpcUaClient emits endpointsRequestFinished you can do following in the slot to change the endpoint. void UaClient::endpointsRequestFinished( QList<QOpcUaEndpointDescription> endpoints, QOpcUa::UaStatusCode statusCode, QUrl requestUrl) { for (QOpcUaEndpointDescription& epd : endpoints) { // Connect to unsecure node if (epd.securityMode() == QOpcUaEndpointDescription::MessageSecurityMode::None && epd.securityPolicy().contains("None")) { m_client->connectToEndpoint(epd); } } Maybe your opcua server does not allow a connection to the unsecured endpoint as you try to do. With the above mentioned approach you can select a different endpoint. To me it looks like during building the opcua module cmake was not able to find openssl on your pc. This is required to be able to use secure endpoints. All secure endpoints from your server are annotated with "not supported". https://doc.qt.io/qt-6/qtopcua-build-openssl.html
  • 0 Votes
    6 Posts
    234 Views
    JonBJ
    @RobertSommer If you want a model to copy, Python's RotatingFileHandler and more specifically TimedRotatingFileHandler seem to provide what you are speaking about. As you can see it requires a library and a bunch of code to implement, you could write similar using C++ and some Qt calls.