Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.1k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    4 Votes
    29 Posts
    36k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • Modeless dialog

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Exclude directories from lupdate

    6
    0 Votes
    6 Posts
    3k Views
    D
    lupdate_only solution does not work for me. lst-file works for me: create file with name lst-file and inside specify files/folders with sources e.g.: sources includes then call lupdate lupdate . @lst-file -no-obsolete -ts myapp.ts
  • Ugly default orange close button when using QTabWidget::setTabsClosable

    Unsolved
    2
    0 Votes
    2 Posts
    31 Views
    Christian EhrlicherC
    These are two different styles - a dark one and a light one. So first you should make sure to use the same style.
  • 0 Votes
    4 Posts
    169 Views
    SGaistS
    Did you already check the bug report system ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • How to change qvncserver pixel format from client

    Unsolved
    9
    0 Votes
    9 Posts
    237 Views
    SGaistS
    You should take a look at the vnc platform plugin implementation. I remember seeing there something related to adjustment.
  • Download Qt Style Sheet files

    8
    1 Votes
    8 Posts
    42k Views
    jsulmJ
    @Plan-C You should consider posting this here: https://forum.qt.io/category/8/showcase
  • Why is QT so expensive? 5000+ dollar a year

    Unsolved
    34
    0 Votes
    34 Posts
    14k Views
    T
    and add 100$ for each sold device
  • how to make a tablewidget like this?

    Unsolved
    6
    0 Votes
    6 Posts
    162 Views
    GrecKoG
    Doing this in QWidgets looks like a pain in the ass. It would be pretty easy to do in Qt Quick.
  • sslechoserver (QtWebSockets) and https

    Unsolved
    3
    0 Votes
    3 Posts
    43 Views
    D
    Yep the error above was what I saw on the web console. I can get the page to load as HTTPS, and the server side of the websocket (sslechoserver) is not reporting any errors. Hence why I am rather lost. Does not help this is not an area I have much experience in.
  • Unexpected disconnect of QObject connections

    Unsolved
    7
    0 Votes
    7 Posts
    150 Views
    Axel SpoerlA
    The problem is using the EOL Qt 5.15.18. PMF based connections used to silently fail under certain conditions (I know ambiguity was one reason). They have been significantly improved in Qt 6. In Qt 6.11 I get this output right away: B QVariant(int, 1) A QVariant(int, 1) B QVariant(Invalid) A QVariant(Invalid) B QVariant(int, 2) A QVariant(int, 2) virtual C::~C() virtual B::~B() virtual A::~A() If you wanna check which connection fails, you can output the return value of the connect statement e.g. like that: B(const A &a) : a{a} { const auto connection = connect(&a, &A::valueChanged, this, &B::valueChanged); qInfo() << connection; } (The return value is of the type QMetaObject::Connection, but it's debug operator just treats it like a bool.)
  • Screen overrun

    Unsolved
    23
    0 Votes
    23 Posts
    2k Views
    JonBJ
    @dencla One simple thing from the Designer side: look at the Object Explorer at the right hand side, showing all your widgets in a hierarchical structure. If any widget nodes have a "red no entry" symbol on them that indicates you are missing a layout. To assign layouts in the UI you either right-click on a widget (once it has children) and set its Layout from there or there are actual layout items in the toolbox on the left to drag explicitly. I have never looked into whether they end up doing the same thing!
  • Fix GLOB in CMakeLists.txt

    Solved
    3
    0 Votes
    3 Posts
    52 Views
    R
    Right. file(GLOB IMAGES_FILES RELATIVE ${CMAKE_SOURCE_DIR} "src/resources/images/*.svg")
  • Qt Wayland compositor in C++

    Unsolved
    3
    0 Votes
    3 Posts
    89 Views
    T
    @SGaist Yes, I did see the C++ example however I don't want to go the GL rendering route, as my shell will only have one Wayland surface visible at a time, hence the reason I chose this route. Something interesting worth noting is that if I try to pass a Wayland surface through C++ to ShellSurfaceItem in QML, it draws some sort of border but nothing actually renders inside it. Doing the same entirely in QML works without issues.
  • I see there is crash in xi2ProcessTouch

    Unsolved
    2
    0 Votes
    2 Posts
    53 Views
    Axel SpoerlA
    Hi @Krish89 and welcome to the Qt Forum, the crash happens in Qt5, which is EOL and no longer maintained. Can you try Qt6 (e.g. 6.8) instead? I am asking because the XCB implementation was improved in Qt6, so there is a chance that this has already been fixed. Cheers Axel
  • Is there somewhere a visual inheritance tree of the Qt classes?

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    I
    You can use doxygen/doxywizard to generate graphviz dot files: [image: fc587a50-40f0-4c0c-8820-29630b401a3f.png]
  • Why does QTimer::setInterval(0) not work as expected in Qt 6?

    Solved
    11
    0 Votes
    11 Posts
    200 Views
    jeremy_kJ
    @Christian-Ehrlicher said in Why does QTimer::setInterval(0) not work as expected in Qt 6?: @jeremy_k said in Why does QTimer::setInterval(0) not work as expected in Qt 6?: I thought you were going to ask for something hard, like a reference within the implementation. Please look at my link to the source code. I overlooked that. Thanks. QTimer::singleShotImpl() uses a queued connection for the ns == 0 case. https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qtimer.cpp#n389 QMetaObject::invokeMethodImpl(const_cast<QObject *>(receiver), slotObj, Qt::QueuedConnection, h.parameterCount(), h.parameters.data(), h.typeNames.data(), h.metaTypes.data());
  • 0 Votes
    3 Posts
    48 Views
    B
    To add a bit more to @Christian-Ehrlicher 's answer, the operator <() of QVariant had already been obsoleted since Qt5.15 and got removed from Qt6. You can see this from the archived Qt5.15 documentation: https://doc.qt.io/archives/qt-5.15/qvariant-obsolete.html#operator-lt This operator is deprecated as it cannot establish a total order required for most use of this operator, which is the reason you cannot use QVariant as the key of a QMap.
  • How to silence "Using Qt multimedia with FFmpeg version..."

    Solved
    6
    1 Votes
    6 Posts
    84 Views
    A
    I think, I figured it out. Using this qputenv("QT_LOGGING_RULES", "qt.multimedia.ffmpeg*=false"); in main does not log anything from ffmpeg