Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Context menu (QMenu) stuck on macOS

    Solved
    2
    0 Votes
    2 Posts
    169 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
    427 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
    599 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
    472 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
    527 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
    466 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
    159 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).
  • Is it ok to move QWidget outside screen?

    Unsolved
    5
    0 Votes
    5 Posts
    600 Views
    A
    Consider that some graphics drivers may just shove the widget back into visible space.
  • Qt serialport does not work with RS422 but seems to work seamlessly with RS232

    Unsolved
    3
    0 Votes
    3 Posts
    648 Views
    K
    @SamarthHalyal said in Qt serialport does not work with RS422 but seems to work seamlessly with RS232: Any idea why this might be happening? What does not work? Please be more informative.
  • 0 Votes
    3 Posts
    294 Views
    sierdzioS
    @Casino said: 5" "VALUES You have no space after 5 so the SQL syntax is wrong. Unfortunately SQLite error messages are extremely confusing.
  • :-1: error: LNK1158: cannot run 'rc.exe'

    Unsolved
    3
    0 Votes
    3 Posts
    320 Views
    I
    No......
  • Qt Application freezes all threads until mouse is moved or button pressed

    Solved
    2
    0 Votes
    2 Posts
    455 Views
    J
    I fixed it by removing the 2 lines with: QApplication::processEvents(); It is still strange behaviour or am I missing something on how QApplication::processEvents() works? Best regards, Jobusch
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied