Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • How to force a style sheet recalculation

    24
    0 Votes
    24 Posts
    29k Views
    Pl45m4P
    @JonB Maybe even https://doc.qt.io/qt-6/qwidget.html#ensurePolished https://doc.qt.io/qt-6/qstyle.html#polish That might force the style(sheet) to update too. But usually the widget should do this when a new style(sheet) is applied.
  • Cannot install

    Unsolved
    17
    0 Votes
    17 Posts
    13k Views
    M
    Hey! If you're on windows, ensure that your date/time is up to date.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • QRemoteObjectReplica.Suspect when busy in while loop

    Unsolved
    3
    0 Votes
    3 Posts
    58 Views
    M
    @jsulm The loop has something to do with a special libusb device waiting to be established etc. I don't want to change the logic of this code (not from me). Just want to wrap the QRemoteObjectReplica class around it, call it from the connection and wait until its finished with QRemoteObjectPendingReply But i guess it works only if the function returns "immediately".
  • Qt class for Contour plots

    Unsolved
    3
    0 Votes
    3 Posts
    70 Views
    PerdrixP
    No, but I will now :). Thank you
  • I Can't load the QMySQL with Qt 6 C++

    Unsolved
    4
    0 Votes
    4 Posts
    93 Views
    B
    @Tuanhoc8 This is not what you should be looking for. These are information that tells you these plugins exist. But we already know that from your "available drivers" output. Find something like "loaded" or "cannot load" / “failed”. By the way, where is your libmysql.dll coming from? (You don't need to have libmysqld.dll though) If you get it from MySQL Server, I remember it depends on libopenssl so it needs libcrypto-3-x64.dll and libssl-3-x64.dll to load. You may use Dependencies tool to check that. (I highly recommend to build the plugin using the library from MariaDB instead of MySQL Server because it depends the least.)
  • 0 Votes
    66 Posts
    13k Views
    FeRDNYCF
    Necromancy, sorry, but there was a point made a while back that kind of zipped by without comment, and I wanted to circle back to it: @Christian-Ehrlicher said in Rust file parsing significantly faster than Qt/C++ file parsing. Solutions for Qt implementation wanted. File size: 68.5 MB: The problem with QDateTime is that for every call the internal format parser (QDateTimeParser, private class) is re-created and needs to re-evaluate the string. This takes a lot of time. Given how expensive it is to re-create that parser for every call, I wonder if Qt would consider making the parser public. instantiable, and reusable, so that when parsing a lot of same-formatted date strings, it could be created just once and applied to all of them? Kind of like Python's re.compile() for regular expressions. e.g. something like: QDateTimeStringParser* dateParser = new QDateTimeStringParser( "yyyyMMdd HHmmss zzz0000" ); QElapsedTimer* parseTimer1 = new QElapsedTimer(); parseTimer1->start(); for (int ii = 0; ii < allData.size() - 1; ii++) { QByteArrayList data = allData.at(ii).split(';'); t.dt = dateParser->parse(data.at(0)); t.last = data.at(1).toDouble(); t.bid = data.at(2).toDouble(); t.ask = data.at(3).toDouble(); t.volume = data.at(4).toInt(); instr.tickList.append(t); } qDebug().noquote() << QString("Qt parse time: %1ms") .arg(parseTimer1->elapsed()); dateParser->deleteLater(); I wonder if that could make it significantly faster? parse() would have to be reentrant and stateless, of course (beyond the stored, immutable format string), which could still be tricky for a complex parser.
  • SDL3 Lib in Qt6

    Solved sdl joysticks button gamepad general problem
    3
    0 Votes
    3 Posts
    195 Views
    J
    Thank you so much, I will check over
  • QFileDiaolg question about extensions

    Unsolved
    5
    0 Votes
    5 Posts
    181 Views
    J
    Some platforms or Qt versions may treat .gz as the primary extension, so the dialog might not match files as expected unless each full extension is written out.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Using setCamera[XY]Rotation in Q3DScatterWidgetItem to move camera above a point

    Unsolved
    2
    0 Votes
    2 Posts
    110 Views
    G
    After much digging to understand how qtgraphs handles vectors, I did finally crack this. Camera direction is -z, coordinates are y-up. So X rotation angle is from yaw. QVector3D v = QVector3D(x,y,z); v.normalize(); // camera vector QVector3D camera = QVector3D(0,0,-1); // camera along z axis // compute rotation QQuaternion rotation = QQuaternion::rotationTo(camera,v); rotation.getEulerAngles(&pitch,&yaw,&roll); // set camera rotation graph->setCameraXRotation(yaw); graph->setCameraYRotation(pitch);
  • Video Output Not Displaying in QVideoWidget with Playbin Element

    Solved
    5
    0 Votes
    5 Posts
    282 Views
    B
    @ccls Yes, not using playbin is a better way I think. I was also curious why you need to use playbin in pipeline since Qt already uses playbin to play normal urls, now this makes sense :)
  • Cryptic malloc crash

    Solved
    7
    0 Votes
    7 Posts
    232 Views
    J
    Okay; so I have to find a way to make sure that QByteArray persists through the entirety of the call to write in the socket it eventually gets passed to. Thanks all!
  • qthread conflict with _I in VS2022, BUT ok in qt5

    Unsolved
    2
    0 Votes
    2 Posts
    119 Views
    Christian EhrlicherC
    include the Qt headers first
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    20 Views
  • 0 Votes
    19 Posts
    5k Views
    R
    Thanks for the insights, by the way I ain't using Ubuntu-supplied Qt5 , i installed separately but not from link. I will try to add wayland plugins and see it works.
  • Updating application icons for macOS 26 Tahoe and Liquid Glass

    Solved
    1
    2 Votes
    1 Posts
    116 Views
    No one has replied
  • ld: framework 'AGL' not found on macOS Tahoe

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    AndyBriceA
    Can confirm that I had the same issue and compiling in Qt 6.8.4 fixed it. Thanks.
  • How to read MP3 Tags Using QT

    4
    0 Votes
    4 Posts
    5k Views
    Esmaeil_SooanE
    Hi, You can also check out this library: 👉 QAudioTagReader It’s a Qt-friendly wrapper around TagLib for exporting audio tags.