Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • 0 Votes
    1 Posts
    161 Views
    No one has replied
  • QLabel text not visible

    Solved
    8
    0 Votes
    8 Posts
    621 Views
    Pl45m4P
    @JonB Learning never stops :) I knew that these exist, but there was no connection to the word "Entity" in my mind ;-) https://www.w3schools.com/html/html_entities.asp
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Automation tool for Qt Creator build. Is there any?

    Unsolved
    3
    0 Votes
    3 Posts
    227 Views
    JonBJ
    @ChrisW67 No, I didn't suggest this because the OP states they want every kit built for, not just every configuration.... Why, I don't know.
  • can anybody explain below lamda function syntax ?

    Solved
    6
    0 Votes
    6 Posts
    729 Views
    JonBJ
    @Qt-embedded-developer [this] is sufficient (and better) if you only need to access class members (variables or methods) in the lambda code. [=] gives this too, but also all local variables (passed by value, not reference) in the function where the lambda is defined. It is "convenient" but "lazy". You can instead always choose explicitly to put it all local variables and/or this to pass just the specified ones, which is "better" coding style. That is what [=] does. Note that there is a similar [&] which does just the same thing but passes the local variables by reference instead.
  • QFile used in another process

    Solved
    7
    0 Votes
    7 Posts
    602 Views
    JonBJ
    @Daddedebad What I was expecting was for you to try disabling the virus scanner for a while and seeing if then there is no issue. In my experience some virus scanners at least open a file with exclusive access to examine it. that could cause your "file is used in another process". They tend to do this when a file is created or written to. I suppose it could also be from the Windows "copy file" itself, don't know what that does. As you seem to have discovered for yourself: you may need (a) some sort of delay, e.g. when the QFSW notifies you of change set off a timer for, say, one second to raise the signal at the end which instructs your code to read the file; and/or (b) you may have to retry opening it for read a certain number of times one second apart to allow for this, before giving up.
  • 0 Votes
    1 Posts
    126 Views
    No one has replied
  • Signal flag changes for QAbstractItemModel

    Unsolved itemmodel
    18
    0 Votes
    18 Posts
    4k Views
    JonBJ
    @kshegunov One might actually need the signal to tell us which flags have changed. Only certain flag changes affect anything we are interested in, several seem not relevant.
  • Detect top/parent move event on child widget

    Unsolved qwidget qmainwindow qmoveevent
    28
    0 Votes
    28 Posts
    10k Views
    kshegunovK
    @ThThoma said in Detect top/parent move event on child widget: However, what if I have multiple floating widgets that track their "parent" movements? You'd have multiple event filters. And I'm answering: probably the delay from the multiple filters will start to get noticeable... I really doubt it, as long as you don't have too many. If you keep the event processing responsive, you shouldn't notice it at all. Personally, I'd rather have the window in a layout, or if it's really floating, then leave it be, but ymmv.
  • Qt 6.4 windows movement/resizing behavior on DirectX

    Unsolved qt 6 direct3d11 directx windows resizing
    7
    0 Votes
    7 Posts
    4k Views
    A
    @AlexMax The issues is marked fixed in 6.3 and 6.4, so it it still persists in 6.5, that would probably warrant a new issue, linking to the old one. Or is it captured by linked and still-open https://bugreports.qt.io/browse/QTBUG-99602?
  • Changing camera orientation in Qt 6.4.3

    Unsolved
    1
    0 Votes
    1 Posts
    149 Views
    No one has replied
  • How to ensure that a Widget QPainter changes size when the parent does?

    Solved
    3
    0 Votes
    3 Posts
    339 Views
    supergS
    @Bonnie Thank you, I can't believe I didn't think of that. Now it works like a charm, thanks again!
  • Vertical Splitter

    Solved
    3
    0 Votes
    3 Posts
    249 Views
    I
    @Chris-Kawa , Thank you. that's the solution.
  • CAN QT creator open remote project?

    Unsolved
    6
    0 Votes
    6 Posts
    386 Views
    JonBJ
    @cainiao123 You might install, say, the latest version of Creator instead of one from 2017. the project in Linux virtual machine, It would be an awful lot simpler to just do the editing/development in the Linux VM, given that is what you already have....
  • QListWidget disable hover for item widget?

    Solved
    20
    0 Votes
    20 Posts
    2k Views
    T
    Finally, found a solution! The trick is Not to use hover modifier/attribute for disabled items QListWidget::item:disabled, QListWidget::item:!active, {background: transparent;} This stylesheet plus removing IsEnabled or IsSelectable flag for desired items will disable hover effect.
  • How qthread get executed based on priority ?

    Solved
    3
    0 Votes
    3 Posts
    240 Views
    Kent-DorfmanK
    Yinz are probly already aware of this but I think it is important to note...from the QThread documentation: The effect of the priority parameter is dependent on the operating system's scheduling policy. In particular, the priority will be ignored on systems that do not support thread priorities (such as on Linux, see http://linux.die.net/man/2/sched_setscheduler for more details).
  • I need QT6, but also Win7 support. What can I do?

    Unsolved
    2
    0 Votes
    2 Posts
    987 Views
    sierdzioS
    Not sure if it will help in your case, but @hskoglund has some solution to run Qt6 on Windows 7, see here: https://forum.qt.io/topic/133002/qt-creator-6-0-1-and-qt-6-2-2-running-on-windows-7 Regarding D3D requirement, I think for widgets it should be possible to not have it (widgets are drawn using software renderer anyway). See https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph-renderer.html#rendering-via-the-qt-rendering-hardware-interface and https://doc.qt.io/qt-6/opengl-changes-qt6.html
  • 0 Votes
    2 Posts
    181 Views
    SGaistS
    Hi, Did you already check the Quick Subscription example ?
  • QtQuick.Dialog is uninstalled

    Unsolved
    9
    0 Votes
    9 Posts
    687 Views
    SGaistS
    Add all the modules to the target_link_libraries call.
  • is this code good for error detection in qml?

    Unsolved
    2
    0 Votes
    2 Posts
    160 Views
    sierdzioS
    Do you emit your signal anywhere? If not, then your slot will never be called.