Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 0 Votes
    5 Posts
    2k Views
    R
    I got the fix, the problem was that the kit I was using was VS 2015 and the lib was probably built using VS 2017. I switched to VS 2017 and it is working fine
  • Smooth out gps path on map (QLocation), how to ?

    Unsolved
    6
    0 Votes
    6 Posts
    549 Views
    M
    @Pablo-J-Rogina its about a method you draw the line on the map. I know two: create MapPolyline use routeModel However RouteModel is using MapPolyline internally so it is only the question of accuracy of gps data and I don't have control over this. I have 1000 gps points, I could use them in groups, 20 points to single MapBox query, retrieve gps points returned by MapBox and create my MapPolyline from these points. But it looks to me like some awkward idea. Best, Marek
  • Mac OS Mojave privacy prompt not appearing in notarized builds.

    Solved
    6
    0 Votes
    6 Posts
    623 Views
    J
    I finally got this working. The info plist needs to have a string in place to ask for permissions (as mentioned already) and the app, when signed, needs to have entitlements attached that include: <key>com.apple.security.device.audio-input</key> <true/> <key>com.apple.security.device.microphone</key> <true/> Hope that helps someone else in the future!
  • How to communicate with a BLE device?

    Unsolved
    1
    0 Votes
    1 Posts
    417 Views
    No one has replied
  • How to open a KDE konsole app via QProcess?

    Solved
    4
    0 Votes
    4 Posts
    515 Views
    Pablo J. RoginaP
    @SandyLocke said in How to open a KDE konsole app via QProcess?: worked so please mark your post as solved then. Thanks.
  • currentChanged fires immediately upon initialization?

    Solved
    8
    0 Votes
    8 Posts
    763 Views
    Pablo J. RoginaP
    @SRaD you may want to think of connect, signal and slot as wiring, switch and bulb respectively. With connect() you wire the switch to the bulb, then when you emit a signal is like actuating the switch so the electricity ends up in the bulb (the slot) where you carry on things (light your room).
  • How to manage incoming serial data to avoid data loss

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    K
    @VRonin void serial::framesAvailable() { qDebug() << "serialport.isTransactionStarted() = " << serialport.isTransactionStarted(); //QTextStream stream(serial); if(serialport.isTransactionStarted() == false) { for(;;) { serialport.startTransaction(); if(stream.readLineInto(&tempLine)) { if(tempLine != '\0' && tempLine.size() == 1) { //qDebug() << "tempLine " << tempLine << tempLine.size(); line.append(tempLine); serialport.commitTransaction(); } } else { serialport.rollbackTransaction(); break; } } //qDebug()<< "line " << line; if(line.size() == 192 && line.startsWith("CH")) { divided_line = line; line.clear(); //qDebug()<< "line " << divided_line; emit linereceived(divided_line); } } }
  • HiDPI and SVG icon resolution

    Solved svg icons hidpi resolution
    24
    0 Votes
    24 Posts
    11k Views
    C
    Turns out there is a simple solution: app.setAttribute(Qt.AA_UseHighDpiPixmaps)
  • 0 Votes
    4 Posts
    320 Views
    Pl45m4P
    @canid I dont know / tested if it works but you could try to install an event filter and ignore some key events on your form and let other keys through
  • This topic is deleted!

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

    Unsolved
    5
    0 Votes
    5 Posts
    33 Views
  • QPainter reset Transformation Does not work.

    Unsolved
    1
    0 Votes
    1 Posts
    315 Views
    No one has replied
  • Reopen MainWindow

    Unsolved
    7
    0 Votes
    7 Posts
    600 Views
    G
    If your "myWindow" is just a window belong to the application you want to shut down. I'm afraid that we can hardly achieve that. We can't restart a window in a shuted down application LiteBlue
  • QTreeView Stylesheet: Changing anything for the ::branch removes the chevron icon

    Unsolved
    5
    0 Votes
    5 Posts
    592 Views
    qwasder85Q
    @Christian-Ehrlicher I see. It could've been so easy...
  • QNetworkAccessManager gives an error

    Unsolved
    9
    0 Votes
    9 Posts
    962 Views
    Y
    As Thiago Macieira suggest in https://bugreports.qt.io/browse/QTBUG-70917. To Solve this issue remove qgenericbearerd from plugin from location Qt\5.12.3\msvc2017\plugins\bearer\. and it is working. it is not printing warning. another solution is to update the windows build to [image: ca24e97e-3f64-49dd-bc3c-28b998f65e5d.png]
  • A problem about QDateTime in Qt 5.9.1

    Unsolved
    2
    0 Votes
    2 Posts
    255 Views
    J.HilkJ
    hi @Mihan first of, you probably mean Qt not QtCreator, as the QtC version is currently at 4.10.2 2nd, when you update to an 5.9 which is an LTS version I would suggest going to the latest one available What's the problem of using QDateTime in struct? nothing, a struct is a class, nothing fancy going on here. Please post more code, and preferably a stack trace of it actually crashing.
  • QIcon supports no "pressed" state (QToolButton)?

    Unsolved
    4
    0 Votes
    4 Posts
    687 Views
    SGaistS
    Wouldn't that pressed state map to QIcon's on state ? Mode and State are two different things in QIcon. The first one is for the intended use e.g. if you disable a button whether it's pressed or not, it should still show as disabled. The second matches more closely the "active" / "inactive" nature of a pressed and released button which looks like what you are looking for.
  • How to check circular references in qtablewidget cells?

    Unsolved qtablewidget
    2
    0 Votes
    2 Posts
    248 Views
    jsulmJ
    @y_belikov Well, follow the references until you reach the first cell (then you have circular references) or last cell without references. For the first case you actually should see whether you visit one cell more than once.
  • error while deploying to remote device

    Unsolved
    6
    0 Votes
    6 Posts
    703 Views
    jsulmJ
    @Mijaz said in error while deploying to remote device: I have built the qt5.12.5 without specifying the device target That will not work. You have to cross compile Qt. Please take a look at what @SGaist wrote in one of your other threads.
  • a function-definition is not allowed here before ‘{’ token

    Solved
    16
    0 Votes
    16 Posts
    4k Views
    jsulmJ
    @AntonioValentin As @JonB wrote: that bunch of code is outside of any function/method and is invalid for that reason. Also if saying error is in line 255 you could at least mark that line in the code you posted, because else people have to count the lines to find out which line that actually is (and this only works if you posted whole content of the file).