Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Connect , SendMessage, Emit - When should I take what?

    Solved
    5
    0 Votes
    5 Posts
    449 Views
    R
    @Pl45m4 said in Connect , SendMessage, Emit - When should I take what?: @RobertSommer You connect Ink to Controller and Laser the same way. I assume these are printers (or printer software)?! Ink Jet + Laser printers, right?! That is correct.
  • Timer configuration, the possibilities

    Solved
    7
    0 Votes
    7 Posts
    561 Views
    R
    @Axel-Spoerl said in Timer configuration, the possibilities: Something like that? OK, thanks for the sample.
  • Slots and signals problem

    Solved
    6
    0 Votes
    6 Posts
    506 Views
    R
    Thanks for the support. Question answered, connection is made via connect. [image: 015b582f-cd3a-4da0-9740-97292664fb94.png]
  • Implementing "dark mode" on Ubuntu 24.04 (ok) vs Fedora 42 (not ok)

    Unsolved
    4
    0 Votes
    4 Posts
    775 Views
    C
    @IgKh said in Implementing "dark mode" on Ubuntu 24.04 (ok) vs Fedora 42 (not ok): Hi @Christophe-R and welcome to the forum. If the QEvent::ThemeChange is correctly delivered to your top level window, I think that the Qt style in use in your Fedora installation might not have a dark palette (style hints are only hints after all - the actual style class must respect them). Try running your application with the -style Fusion command line parameter - the Fusion style is shipped with Qt and is known to support dark color scheme hint. I am using in my C++ code: app.setStyle("fusion"); Check if the QT_QPA_PLATFORMTHEME environment variable happens to be set - especially with the value qt6ct or qt5ct. qt6ct is a great tool for getting Qt apps to blend in with GTK based desktop environments, but it it messes with palettes pretty heavily to achieve that. QT_QPA_PLATFORMTHEME is not set
  • Focus stealing progress dialog

    Solved
    31
    0 Votes
    31 Posts
    5k Views
    Axel SpoerlA
    Well, David, we've all been there, have we not? The focus theft topic caused me a slight panic wave: I re-factored the focus chain handling in widgets a while ago. What looked like piece of beauty, introduced some awful regressions. And since you've caught me red handed on a dock widget regression earlier, I smelled trouble coming my way ;-)
  • Qt6 Widgets Application not working, exit code -1073741511

    Unsolved
    35
    0 Votes
    35 Posts
    6k Views
    H
    Sorry for all the inconvinience, I will try to express more exactly to avoid this kind of misunderstanding
  • QTreeView empty

    Solved qtreeview qabstractitemmo
    6
    0 Votes
    6 Posts
    623 Views
    M
    @Christian-Ehrlicher yep that was it. Can't believe I missed that for so long thank you both for the help
  • Using qt for a commercial application on windows (LGPL)

    Unsolved
    76
    0 Votes
    76 Posts
    25k Views
    J
    @JKSH Thank you for explanation!
  • Animating the scale of a QDialog

    Unsolved
    4
    0 Votes
    4 Posts
    397 Views
    M
    @Pl45m4 I actually recently learned that you can basically overlay any widget on top of widgets in a layout, so I made something better. As an alternative for animating the scale, I guess you can just take a snapshot of your widget, and just animate the scale in After Effects or something, and show the animation first and than the dialog itself. [image: T47JEhN.gif]
  • Qt6 based software display issue

    Unsolved
    5
    0 Votes
    5 Posts
    407 Views
    JonBJ
    @KlausM said in Qt6 based software display issue: Thats not true . Are you saying I am mistaken? I don't run XFCE, I do use VB 7.1. I did not dispute your finding, I was just describing my situation. P.S. Are you using some sort of Dark Mode in VB? Does the issue appear in "light" mode? P.P.S. To be clear, my VB host is Windows, client is Linux. Maybe you are Linux host for the VB UI? In which case that is obviously different.
  • It is posible to update a QTablewidget row by row?

    Solved
    5
    0 Votes
    5 Posts
    375 Views
    E
    @JonB Hello, good morning, you are right, now I was able to solve the problem I had using QThread, thank you.
  • 0 Votes
    3 Posts
    212 Views
    Christian EhrlicherC
    Include the QJsonObject header in your source
  • Add parameter to QOAuth2AuthorizationCodeFlow using setModifyParametersFunction

    Solved
    3
    0 Votes
    3 Posts
    257 Views
    C
    I'm sorry for not replying for so long... The lambda was getting triggered, and as you pointed out, the stage I was checking for was wrong. I needed to modify them at QAbstractOAuth::Stage::RequestingAuthorization, not at QAbstractOAuth::Stage::RequestingAccessToken. Anyways, thanks for the quick reply!
  • QDataWidgetMapper with SQL Table AUTO_INCREMENT

    Solved
    5
    0 Votes
    5 Posts
    433 Views
    JonBJ
    @ZNohre I am glad this has helped/turned out to be solution. Not long ago we had a report from someone that for some function call, and I cannot remember which, it was not possible to alter values, despite the Qt documentation stating that it should be. It was something like insertRowIntoTable(), might have been updateRowInTable(). If yours works that is fine. Otherwise if you run into such a problem then instead of subclassing and overriding insertRowIntoTable() you can call setGenerated() on the QSqlRecord prior to your explicit calls to e.g. QSqlTableModel::insertRecord().
  • Can't get location from geocode()

    Unsolved
    12
    0 Votes
    12 Posts
    910 Views
    Christian EhrlicherC
    @msauer751 That's why we want a minimal, compilable example instead just some code pieces... it would have saved you two weeks.
  • QApplication initialization is memory intensive

    Unsolved
    3
    0 Votes
    3 Posts
    300 Views
    E
    @Kent-Dorfman Thank you for your reply. There should be other reasons, but I haven't found them yet. Can you tell me how to fix the memory problem in windows?Thanks
  • QNmeaPositionInfoSource with QBuffer IODevice, no updates received

    Unsolved
    1
    0 Votes
    1 Posts
    116 Views
    No one has replied
  • how to change the dayDelegate for changing the image visible state?

    Unsolved
    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • how to define a macro function with included the signals key words?

    Unsolved
    8
    0 Votes
    8 Posts
    595 Views
    nicker playerN
    @jsulm thanks.you just helped me.
  • Building QT6.5 with NMake error

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    KH-219DesignK
    As expected, it was easy to make a very small CMake project to reproduce the error (building "with" Qt, as opposed to "building Qt" the whole framework). The small project reproduces the qt6qml_debug_metatypes.json nmake "illegal value" error (invalid empty json file). There is good news, just as @Christian-Ehrlicher alluded to. It reproduces easily in 6.5.3, but the problem is gone when I use 6.7.3. So if anyone arrives here (as I did) due to a 6.5.3-based Qt project and is looking for a simple fix, the simple fix appears to be: upgrade to at least 6.7.3. The repro: https://github.com/219-design/qt-qml-project-template-with-ci/pull/120 The fix: https://github.com/219-design/qt-qml-project-template-with-ci/pull/121