Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.7k Posts
  • QTreeWidget.itemAt returns wrong item in dropEvent

    Solved pyside dropevent qtreewidget
    3
    0 Votes
    3 Posts
    335 Views
    F
    @Pl45m4 Sorry, I was working with the wrong dropEvent. Me stupid. Things work now. Thanks
  • Which Qt6 version for Ubuntu 24.04

    Solved
    7
    0 Votes
    7 Posts
    11k Views
    Pl45m4P
    @JonB said in Which Qt6 version for Ubuntu 24.04: It is looking like, and I am hoping, they have upped to 6.6.x for 24.10 Yup, 24.10 has Qt 6.6.2 https://packages.ubuntu.com/search?suite=oracular&searchon=names&keywords=Qt6 and no, haven't tried it yet.
  • How to send PUT or POST requests with Request Body to Google API

    Solved
    7
    0 Votes
    7 Posts
    450 Views
    B
    @Hristo-Konstantinov I think you just need the QUrlQuery part to get the url with parameters, then you could use QOAuth2AuthorizationCodeFlow::post(const QUrl &url, const QByteArray &data). They should be the same.
  • [Qt6.7.0] Force light mode has incorrect rendering when system is dark mode

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    J
    I have the same issue and this code solved it!
  • Fetch text from a site as QString

    Solved
    24
    0 Votes
    24 Posts
    3k Views
    Pl45m4P
    @realroot said in Fetch text from a site as QString: @Pl45m4 Functions ( downloadFile and replyFinished) are not in the header. I did not specify that but I did add MyClass scope e.g. void MyClass::downloadFile(). Don't know what this means, but might be okay.
  • 0 Votes
    2 Posts
    171 Views
    A
    Hi please prefer posting your code as text rather than screenshot. Your questions are a little unclear to me, but if I understand it right, at least for the two first yes you can safely delete an object from within it's parent or from any other object, however, if you ever want an object to delete itself, I would rather suggest doing this->deletelater() ; no the deleter is not deleted please reformulate correctly
  • Correct way to proxy SQLite tables

    Unsolved
    2
    0 Votes
    2 Posts
    147 Views
    S
    Its possible to sort second table by id and then convert it into tree
  • Qt Creator crashes after implementing any kind of charts in Qt Designer Studio Qml

    Solved
    6
    0 Votes
    6 Posts
    547 Views
    K
    Found the answer in https://forum.qt.io/topic/70575/qt-charts-crash In main.cpp you should change QGuiApplication to QApplication QApplication app(argc, argv);
  • Can I read/write Windows-1252 and other legacy encodings in Qt 6?

    Unsolved
    20
    0 Votes
    20 Posts
    3k Views
    AndyBriceA
    Thanks, Simon.
  • Some quick feedback on the 6.8 implementation of QT/Protobuf

    Unsolved
    4
    0 Votes
    4 Posts
    377 Views
    semlanikS
    Here are two bugs for the context: https://bugreports.qt.io/browse/QTBUG-119912 https://bugreports.qt.io/browse/QTBUG-119913 And the change that removed them: https://codereview.qt-project.org/c/qt/qtgrpc/+/585992 P.S. The fact you complain about the removal, forces us to reconsider our decision.
  • QWebSocket closeCode always 1000 and QAbstractSocket::RemoteHostClosedError

    Unsolved
    4
    0 Votes
    4 Posts
    820 Views
    A
    After some debugging it seems to be a bug fixed in Qt 6.4. (and backported in 6.2/6.3) According to the old code, QWebSocketPrivate::processData used to be connected using Qt::QueuedConnection, so it may be called after QWebSocketPrivate::processStateChanged. This means the close frame can be unprocessed, leaving closedCode in 1000. The commit fixing this is e1c92b57.
  • Is there any conflict between QtQuick folder duplicates?

    Unsolved
    9
    0 Votes
    9 Posts
    489 Views
    D
    @jsulm said in Is there any conflict between QtQuick folder duplicates?: It's your application, right? Yes, right. @jsulm said in Is there any conflict between QtQuick folder duplicates?: Why should there be a duplicate in your application on user PC? It's unimportant, this has already fixed. But I need some safe way to load QtQuick from qml folder even if there is a duplicate in the root. @jsulm said in Is there any conflict between QtQuick folder duplicates?: How do you deploy your app? By installer.
  • Why macOS app requests exactly 5.dylib libraries?

    Unsolved
    6
    0 Votes
    6 Posts
    393 Views
    SGaistS
    There's a whole article on the subject in Apple's documentation under Dynamic Library Design Guidelines.
  • 0 Votes
    4 Posts
    438 Views
    gfxxG
    real sorry .... see these morning "enum QFont::weight" .... so understand. thanks to all
  • QSqlQuery Postgres and timestamp => QDateTime(Invalid)

    Solved
    6
    0 Votes
    6 Posts
    602 Views
    H
    I filed a bug report and it seems that the bug is identified and solved. Mni tnx, BR Henning
  • How can I use a ScrollbarArea with a OpenGLWidget?

    Unsolved
    4
    0 Votes
    4 Posts
    223 Views
    Pl45m4P
    @SuperAlejandro said in How can I use a ScrollbarArea with a OpenGLWidget?: QQuadTree I've never heard of QQuadTree. It is a Qt class?! the map editor is where I'm having issues with within the scrollbars. But what exactly?! You know that you can't scroll to something that doesn't exist? If you "map" is at max 65.000 tiles wide and 65.000 long, you can't scroll to tile (52.123 | 62.456) when it's not there and the QScrollArea (the viewport) is not that big... If you want your scrollArea to always have the maximum size so you can scroll to every single tile position, even when it's not populated, you need to pre-set your "map" widget (the OpenGLWidget) with your max size... then set your viewport which shows only a part of the whole thing. The example is about QGraphicsView but maybe it helps with the idea: (see your "map" as the scene used in this example) https://doc.qt.io/qt-6/qtwidgets-graphicsview-chip-example.html
  • Setting a tool tip on the title bar of a dock widget

    Unsolved
    3
    0 Votes
    3 Posts
    244 Views
    PerdrixP
    Oh well it was worth asking - even if the answer's no. Thank you
  • Token request failed Google Auth

    Unsolved
    14
    0 Votes
    14 Posts
    976 Views
    K
    I added Google People Api, changed the ports, ensured all the urls, tried different online methods but can't gather the user info. If someone has a working code might be helpful to manage why so.
  • QMAKE - VERSION adds number to build library file

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    E
    Use CONFIG += skip_target_version_ext
  • why out of memory error??

    Unsolved
    4
    0 Votes
    4 Posts
    277 Views
    J
    Check if shallow copy is used with QImage and cv:: mat. Check for multi-threaded exceptions and whether the UI has been changed in non GUI threads.