Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Debug output when calling QToolBar::addAction()

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    JonBJ
    @Perdrix said in Debug output when calling QToolBar::addAction(): Just to be 100% clear, and get you on the right track of new syntax so you will like it(!), as @Pl45m4 has said the whole line needs to be: t.addAction(dragRect, "", &editor, &DEditStars::dragButtonPressed); Page https://wiki.qt.io/New_Signal_Slot_Syntax gives you comparative examples.
  • QThread Advice

    Solved
    4
    0 Votes
    4 Posts
    293 Views
    JKSHJ
    @RCtaf said in QThread Advice: Thanks for the reply! That worked! i got rid of the quit() and wait() from my main. Great! I am very new when its come to threads You will benefit from reading and researching. unfortunately i need the second thread, because i am using a SDL (SDL_Joystick) class to continually handle inputs from a joystick and the best way i found so far was running it through a second thread. OK
  • Non-dockable floating toolbar

    Unsolved
    3
    0 Votes
    3 Posts
    493 Views
    PerdrixP
    Thanks for heads up
  • questions about make install and uninstall

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    T
    Ah i see. Well i just use the app template. The other question i had about the empty directories not getting removed, is because the Makefile has a plain rmdir for the DEL_DIR variable. Changing that with rmdir -p fixes it. E.g. make uninstall DEL_DIR='rmdir -p'.
  • Security policy with QDBusServer

    Unsolved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • QAbstractVideoBuffer::ReadWrite is not recommended?

    Unsolved
    6
    0 Votes
    6 Posts
    669 Views
    SGaistS
    At no point does the blog post modify the original frame. Quoted from the blog: The filter can provide a new video frame, which is used in place of the original, calculate some results or both. The documentation of QVideoFilterRunnable::run state that: Implementations that do not modify the video frame can simply return input. You want to modify the frame, therefore, you have to create a new one. In your case, create the new frame from the right size and type. Make your new frame data the destination of the first OpenCV transformation and continue in-place after that.
  • QSettings on macOS has unexpected flattening of arrays and groups

    Solved qsettings macosx
    5
    0 Votes
    5 Posts
    789 Views
    V
    So that means that the custom 'style' is intentional. That answers my question. Thanks for your answer!
  • QDir make path does not create an empty folder

    Solved
    4
    0 Votes
    4 Posts
    684 Views
    mrjjM
    @GunkutA Hi mkpath makes whole path if needed - so it can also be used to create a folder. but when you use the path currentPath(); and check if that exists, it most likely alwyas will be there so i guess why you though it didnt work.
  • win32 Window message mapping

    Unsolved
    5
    0 Votes
    5 Posts
    673 Views
    S
    I don't have any clue about Qt's internals and I couldn't find it right away. However, I believe that you should be looking inside one of these files: https://code.woboq.org/qt5/qtbase/src/corelib/kernel/
  • Enable or Disable High DPI scaling on a specific Widget

    Unsolved qt5 highdpi scaling qwidget
    3
    0 Votes
    3 Posts
    2k Views
    J
    In one of my project, a bit of resolution seems to be lost when scaling (150%). It is plotting a complicated graph for signal processing. We are thinking whether we can just plot the graph according to the scaling factor (e.g. running the math calculation ourslef and generate a graph double the size for high resolution etc) and not to scale this part of the widget by using the high dpi setting.
  • How to import Qt 3d studio project into Qt creator project?

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    L
    Hi I ran into the same problem recently and solved it by check all the options in Qt maintainer then installed the right QtStudio2.3 runtime for my Qt version. [image: f83bcf03-6ee2-4d8a-b42f-0e3cbf1a8de7.png] Hope it helps.
  • QByteArray range issue?

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    S
    @Christian-Ehrlicher That's ok, that is why I explained to him how it works for the case of char. It is up to him if he wants short or int. He seems to be working with colors and using 8 bit but char is not appropriate for what he is doing.
  • Markers

    Unsolved
    3
    0 Votes
    3 Posts
    290 Views
    Q
    @SGaist said in Markers: Hi, In the documentation you link, they explain that the star is custom. You can use it as a base for your arrows and other forms. Thank you, I will try to do it.
  • make command not working

    Unsolved
    6
    1 Votes
    6 Posts
    2k Views
    Z
    If you're using mingw, maybe you should use mingw32-make command instead of make
  • qtableview with checkbox in first row in all row

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    elidrissizakE
    @JonB its work with this code , thanks you so much for your help ! for(int i = 0 ; i < modell->rowCount() ; i++) { QModelIndex index; index= model->model()->index(i,0, QModelIndex()); modell->setData( index, Qt::Checked, Qt::CheckStateRole ); model->update(index); }
  • progressbar level indicator

    Unsolved
    5
    0 Votes
    5 Posts
    873 Views
    JonBJ
    @viniltc You have some minimum value for the bar, say lo. You have some maximum value, say hi. And a value, say value. Doesn't matter whether those are integers, floats or whatever. So by "percentage" (actually fraction) I mean: (value - lo) / (hi - lo) You want your y coordinate to be miny + (maxy - miny) * percentage.
  • 0 Votes
    3 Posts
    339 Views
    C
    Thank you, that works. Kind regards, Cedric
  • Include curl statically to Qt project

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    S
    anyone can help me to how use openssl in a project without need to build qt with openssl? i think its beter to create new topic and ask this
  • Creating nodes and connecting them with a link(C++)

    Unsolved
    7
    0 Votes
    7 Posts
    785 Views
    D
    @Pl45m4 thanks a lot for the reference
  • Disconnect all slots in an object

    Solved
    5
    0 Votes
    5 Posts
    9k Views
    JonBJ
    @Perdrix Yes, that falls under "You can disconnect all slots from an object's signal".