Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.1k Posts
  • QWebSocket is not able to connect server

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    aha_1980A
    Hi @SteMMo, I'm glad you figured it out. So please mark this topic as SOLVED too. Thanks!
  • This topic is deleted!

    Moved Unsolved
    9
    0 Votes
    9 Posts
    84 Views
  • Future of QGraphicsView and QGraphicsScene

    Unsolved qgraphicsview qgraphicsscene
    8
    0 Votes
    8 Posts
    1k Views
    jeremy_kJ
    @Asperamanca said in Future of QGraphicsView and QGraphicsScene: @jeremy_k said in Future of QGraphicsView and QGraphicsScene: @Asperamanca I think my point was missed. There's no need to choose Quick|Graphics View|Widgets for the entire application. Use each where they make sense and use the underlying Qt core functionality to communicate. Yes, I missed your point. But maybe you missed mine: There is currently no better technology (in Qt) for some use cases than GraphicsView. Of course I can mix and match, depending on what I need. No, I didn't. We're in agreement there. It's easy to look at the graphics silos and forget that they can cooperate.
  • Issue with VideoWriter

    Unsolved
    2
    0 Votes
    2 Posts
    635 Views
    B
    I haven't used VideoWriter But from the documentation: cv::VideoWriter::VideoWriter ( const String & filename, int fourcc, double fps, Size frameSize, bool isColor = true ) Parameters isColor If it is not zero, the encoder will expect and encode color frames, otherwise it will work with grayscale frames. and virtual void cv::VideoWriter::write ( InputArray image ) Parameters image The written frame. In general, color images are expected in BGR format. Since you are writing grayscale images, I think you should pass 0 as isColor while currently you are using 1. Also I think this may be not quite related to Qt...Wouldn't it be better to find an OpenCV forum to ask this kind of questions? (Of course if the crash is due to the image conversion, then it is kind of Qt related.)
  • access a signal of base class within the derived class

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    ODБOïO
    hi thx for answers @Christian-Ehrlicher said in access a signal of base class within the derived class: by re-defining the signal in the derived class yes, I accidentally redefined a signal with the same name in the derived class, that was the issue.
  • Executing a GUI app on a remote debug target via QProcess and a console app

    Solved
    4
    0 Votes
    4 Posts
    678 Views
    MuratUrsavasM
    As I've solved my own question in https://forum.qt.io/post/614152 thread, I'm marking this one as solved.
  • Error when use stencil buffer in FBO(QOpenGLFramebufferObject)

    Unsolved
    2
    0 Votes
    2 Posts
    155 Views
    MartinChan3M
    So could anyone give some advice? :(
  • QT Creator 4.13 hangs on file browser operations

    Unsolved
    1
    0 Votes
    1 Posts
    96 Views
    No one has replied
  • Accept/reject focus coming by mouse click, based on coordinates

    Solved widget focus mouse
    11
    0 Votes
    11 Posts
    3k Views
    S
    Okay, got it: Relevant code resides in QApplication and cannot be changed by subclassing QWidget. There’s no way around Qt::FocusPolicy but there is the possibility to add other attributes. Thanks a lot!
  • Build dynamic library and change the extension from .dll to .pyd

    Unsolved
    1
    0 Votes
    1 Posts
    306 Views
    No one has replied
  • Help with Autotest for Gerrit submission

    Unsolved gerrit qt sources test processevent
    4
    0 Votes
    4 Posts
    623 Views
    SGaistS
    @oblivioncth said in Help with Autotest for Gerrit submission: So I should just add the cases locally, ensure they test correctly, and then commit --amend & push the changed test file as part of the rest of my submission? That's correct yes.
  • QMenuBar not responsive

    Solved c++ qt 5.9.5 qmenu qmenubar
    6
    0 Votes
    6 Posts
    847 Views
    SGaistS
    It might be an issue with macOS 10.15. One thing you can do as a workaround is to disable the native macOS menu bar. You will have it on the QMainWindow but it should be usable.
  • fakesink vs autovideosink in gstreamer pipeline

    Unsolved
    2
    0 Votes
    2 Posts
    494 Views
    SGaistS
    Hi, Shouldn't you rather post that on the GStreamer forum ?
  • Problem overriding mousePressEvent

    Solved c++ qt 5.9.5 qlineedit
    6
    1 Votes
    6 Posts
    2k Views
    mrjjM
    @Daniel_Contro hi Good to hear. best to set this as solved and make a new one as then its easier for others to search :)
  • event connect not honoring default value of handler

    Unsolved
    2
    0 Votes
    2 Posts
    186 Views
    JonBJ
    @RobbieP said in event connect not honoring default value of handler: Signal void QSpinBox::valueChanged(int i) --- and your connect() to QOverload<int>::of(&QSpinBox::valueChanged) ---sends i as parameter, you let that through to your slot void divisions1Changed(bool color = false) as the value of color. Change your slot to match, or munch the i parameter in a lambda.
  • How does a Qtablewidget display images ?

    Unsolved
    2
    0 Votes
    2 Posts
    710 Views
    SGaistS
    Hi, You would need to implement a custom QStyledItemDelegate to scale the image.
  • How to use Gstreamer plugin on windows

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    K
    gstreamer is installed or not? To be honest, I'm not remember. But I saw some info from the QtMM developers how to compile the GST backend on Windows. Or it was in developer mailing list, or somewhere in readme, I'm don't remember that, sorry. :( UPD: You can try to search also on this forum, e.g. you can read this topic or this topic.
  • qml view3D crash

    Solved
    2
    0 Votes
    2 Posts
    277 Views
    gfxxG
    I add the correct QML_IMPORT_PATH and all work ok without crash !! Sorry
  • How to convert QImage to opencv Mat c++

    Unsolved
    11
    0 Votes
    11 Posts
    7k Views
    M
    tnx. It worked
  • How to restart a thread?

    Unsolved
    3
    0 Votes
    3 Posts
    713 Views
    W
    @JKSH said in How to restart a thread?: If your VideoBurner object is in the middle of a calculation and you quit the event loop, your VideoBurner will enter "suspended animation". It will remain stuck in its half-calculated state... and then it will continue the calculation when the event loop is restarted. To avoid that, you must get your VideoBurner object to discard its incomplete calculations when you want to quit. Thank you for the info, I'll search for how to achieve this.