Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Turning off Shadow build leads to a bunch of weird linker errors

    Unsolved
    7
    0 Votes
    7 Posts
    540 Views
    jsulmJ
    @In-Fo Take a look here: https://doc.qt.io/qt-5/why-moc.html Usually you do not have to care about it as QMake will do. It will add instructions to the makefiles to generate, build and link moc files. In your case it seems not to happen for what ever reason. You can post the whole build log.
  • 0 Votes
    3 Posts
    1k Views
    Kent-DorfmanK
    Sounds like you should not be using QSerial and instead design a custom solution outside of Qt. Qt is not for real-time processing and your description of the task seems to imply real-time constraints.
  • QML - letters randomly disappear when resizing label

    Unsolved qml rendering bug label text
    3
    0 Votes
    3 Posts
    1k Views
    P
    I found out that I can reproduce this behavior by setting QT_DISTANCEFIELD_DEFAULT_BASEFONTSIZE, QT_DISTANCEFIELD_DEFAULT_SCALE and QT_DISTANCEFIELD_DEFAULT_RADIUS variables. With these, the problem occurs even on Windows. Not sure whether it's the same problem or not, but if QT_DISTANCEFIELD_DEFAULT_RADIUS is NOT DIVISIBLE by QT_DISTANCEFIELD_DEFAULT_SCALE, the problem occurs 100% of time (some letters will disappear). Example: export QT_DISTANCEFIELD_DEFAULT_BASEFONTSIZE=128 export QT_DISTANCEFIELD_DEFAULT_SCALE=12 export QT_DISTANCEFIELD_DEFAULT_RADIUS=96 // If I set this to 95 or 97 or anything not divisible by 12, it will break. Can someone explain me what these distancefield environment variables do and whether this is an intended behavior?
  • Running command when building app and using output in a DEFINE

    Solved
    6
    0 Votes
    6 Posts
    457 Views
    fcarneyF
    @SGaist I decided to go that route and have it build based upon platform: versiondata.target = buildinfo.h unix:versiondata.commands = $$PWD/create_buildinfo versiondata.depends = FORCE QMAKE_EXTRA_TARGETS += versiondata PRE_TARGETDEPS += buildinfo.h I have a command called create_buildinfo that makes buildinfo.h. To add platforms I just add win32: or whatever and create different commands.
  • Get the bitmap from the cursor

    Unsolved
    1
    0 Votes
    1 Posts
    96 Views
    No one has replied
  • disabled Menu-items

    Unsolved
    2
    0 Votes
    2 Posts
    192 Views
    SGaistS
    Hi and welcome to devnet, Can you provide a minimal compilable example that shows that behaviour ?
  • Context menu (QMenu) stuck on macOS

    Solved
    2
    0 Votes
    2 Posts
    168 Views
    SGaistS
    Hi, That's a question you should ask on the bug report directly.
  • Slot called two times for one signal

    Solved
    6
    0 Votes
    6 Posts
    426 Views
    F
    Like said @SGaist, that's just a silly question. @SGaist said in Slot called two times for one signal: Might be a silly question but are you sure that your method setting connection is only called once ? I didn't pay attention to the methods that are called in the addNewTab() method. Indeed, setUpTabConnexions() is called twice at some point. After using qDebug() and breakpoints, and I was able to find the cause of this problem. Sorry to have bothered you!
  • Any special requirements in a module to debug?

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    kshegunovK
    @JonB said in Any special requirements in a module to debug?: GDB will debug both the parent and the child process. This is going to be just very confusing, if you ask me ... I'd rather keep only one victim on a fork.
  • combo box text invading my other UI fields

    Unsolved
    7
    0 Votes
    7 Posts
    598 Views
    kshegunovK
    If you need to store a QModelIndex then use QPersistentModelIndex instead, that way changes to the model ordering/indices is going to be propagated. You should never keep an ordinary model index outside the current scope (i.e. stack frame). The point is that the model may (want to) reorder itself and your regular model index is going to just point to nirvana in this case.
  • SIGSEV on ~QColorSpace Destructor

    Unsolved
    9
    0 Votes
    9 Posts
    469 Views
    kshegunovK
    @GrafZ4hl said in SIGSEV on ~QColorSpace Destructor: connect (this->Taktgeber, &QTimer::timeout, this, &C_frm_Camera_Calibration::Taktgeber_Tick); What is this? if(this->Main->cameraManager->pipelineQue->try_pop(pData)) What is pData? What is pipelineQue? What's the implementation of try_pop? I'd hazard that your pData's containing garbage or doesn't live long enough for whatever it is you're trying to do.
  • Rotating a SVG image

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    Christian EhrlicherC
    I simply don't understand what your code tries to do - you create a QGraphicsScene but don't use it, you overwrite paintEvent() but don't paint anything in there so your widget can't display anything. You create a QGraphicsView inside a widget but show it as standalone widget - it's just confusing. btw: QGpraphicsObject has a rotation property.
  • 0 Votes
    4 Posts
    523 Views
    Christian EhrlicherC
    @feistykittykat said in Using Qt 5.12, glDrawBuffer is not found in QOpenGLExtraFunctions, shouldn't this be supported?: Just call it directly in Qt without using OpenGLFunctions or a derived class? No, I gave you the link to the Qt function...
  • Is there a way to QWebElement->findFirstElement() when the element is hidden?

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

    Unsolved
    8
    0 Votes
    8 Posts
    36 Views
  • How to do mouse tracking in window?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    S
    @SGaist good thanks
  • QJsonDocument, strip whitespace

    Solved
    3
    0 Votes
    3 Posts
    465 Views
    SPlattenS
    @JonB , doh!, Perfect, thank you, completely overlooked that one!
  • QWebSocket: unable to connect to HTTPS server

    Unsolved
    2
    0 Votes
    2 Posts
    373 Views
    JonBJ
    @Adso4 For https, what have you done about installing SSL libraries? You need them.
  • Scrollable Legend in Custom Plot

    Unsolved
    1
    0 Votes
    1 Posts
    158 Views
    No one has replied
  • Making a QGraphicsRectItem "transparent" to mouse clicks

    Unsolved
    4
    0 Votes
    4 Posts
    933 Views
    A
    From the QGraphicsItem docs: "The mouse press event decides which item should become the mouse grabber (see QGraphicsScene::mouseGrabberItem()). If you do not reimplement this function, the press event will propagate to any topmost item beneath this item, and no other mouse events will be delivered to this item." So there is something fishy going on for sure... EDIT: Also, I use items which cover other items all the time. I don't typically have issues what items "catch" the events, unless I have event handlers in there. However, consider that certain GraphicsItemFlags can implicitly cause items to accept mouse events (e.g. if the item is moveable, it needs to handle mouse clicks).