Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.3k Posts
  • Automatic assignment of slots for several widget

    Unsolved
    2
    0 Votes
    2 Posts
    133 Views
    SGaistS
    Hi and welcome to devnet, You could do it in code which might be faster to write than clicking in Designer or with some Qt meta object programming but that might be overkill since you are getting started.
  • How to create a menu with focusable items instead of QActions

    Unsolved
    3
    0 Votes
    3 Posts
    239 Views
    O
    Hello, thanks for your help. I am a beginner in Qt; I looked at the class definition of your example but couldn't make it work for my purpose. Can you give an example of how to set focus property and add buttons to the menu using QWidgetAction. Thank you in advance.
  • Get screen color profile

    Unsolved
    2
    0 Votes
    2 Posts
    311 Views
    SGaistS
    Hi and welcome to devnet, AFAIK, that's something that is currently outside of Qt scope. You might want to take a look at KDE's colour management for a starting point..
  • Retriving "About Qt" text sample code - REPOST

    Moved Unsolved
    7
    0 Votes
    7 Posts
    470 Views
    SGaistS
    Again: you are mixing different concepts. The SUBDIRS project template is a project management tool. You can build several libraries and executables through it. Then, how you handle these multiple executables in the end is a different problem unrelated to the project management part.
  • qt quick emulation layer crashed line 1

    Unsolved
    1
    0 Votes
    1 Posts
    100 Views
    No one has replied
  • QProcess - Processing output in asynchronous signals

    Solved
    5
    0 Votes
    5 Posts
    972 Views
    eyllanescE
    @Nubcake No, QProcess does not block anything, what blocks is the processing (the "Length processing") that you do of the output. That part run it in a new thread using QtConcurrent.
  • QCamera - capture modes

    Unsolved
    2
    1 Votes
    2 Posts
    205 Views
    SGaistS
    Hi, StillCapture is used to save one image from the camera like a photo camera. Video is to record videos from your camera.
  • QWidget::activateWindow with a different app icon color

    Unsolved
    3
    0 Votes
    3 Posts
    253 Views
    H
    @Christian-Ehrlicher thanks for the fast reply. Do you know what WinAPI function should I call or how would I start googling for it(keyword for it).
  • 0 Votes
    1 Posts
    77 Views
    No one has replied
  • Copies of QSqlQuery share the same bound values

    Solved qsqlquery copying
    7
    0 Votes
    7 Posts
    1k Views
    Christian EhrlicherC
    Thx. Will take a look on it and hope it will go into 5.15 (even we as opensource user currently don't have an advantage currently but this hopefully changes somehow in the near future)
  • Iterate over top two levels of Treeview nodes?

    Unsolved
    5
    0 Votes
    5 Posts
    524 Views
    JonBJ
    @Taytoo said in Iterate over top two levels of Treeview nodes?: Was hoping there was a better way to get nodes of n-levels as a singular list and iterate over them. There is, but that is not what you asked for. You wrote: is there a simple way to iterate in a single loop over the top two levels My answer would not scale for n-levels. Nor would it be right for "visit every node which is not a leaf". One would probably do either of those recursively. And it would not be a "single loop", which I now notice but did not before, if that is what is vital to you. So you have to state exactly what it is you are looking for.
  • Verify " globally accesible " qApp

    Unsolved
    2
    0 Votes
    2 Posts
    262 Views
    kshegunovK
    @AnneRanch said in Verify " globally accesible " qApp: The older post somehow skipped HOW "qApp" became ONE and ONLY ONLY ONE GLOBAL value. It became the one and only one global value by means of you creating it - the one and only one QCoreApplication instance you create in main(). There's no magic, the object sets a global pointer inside its constructor and gives that value back to you when requested through QCoreApplication::instance(). qApp is just a convenience macro that calls QCoreApplication::instance. PS. The relevant code: https://code.woboq.org/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp.html#_ZN23QCoreApplicationPrivate4initEv
  • Qt3D: Material and Frame Graph logic composition

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    kshegunovK
    The documentation is a world of hurt, I hear you. Can't give you a resource, because I haven't found one, but from my investigations glancing through the source, I could give you the broad strokes. The material is a component, it's basically nothing that's visual. When the frame graph is traversed it collects the jobs from the entities (i.e. from the components attached to the entities) and then runs them through the pipeline. So no, the effects and techniques are not duplicating the framegraph per se, they're just a specification(s) for the entity on how to be rendered (you can filter out specific techniques from the frame graph if you use deferred rendering for example).
  • Crash with ActiveQt and Visual Studio

    Unsolved
    3
    0 Votes
    3 Posts
    256 Views
    Jonas KvingeJ
    I'm using CMake. If I add /Gz to add_compile_options. it fails to link when compiling. When adding /Gd, it's the same behavior as before. I did a full rebuild.
  • Migrating from Qt4 to Qt5 issues

    Solved
    7
    0 Votes
    7 Posts
    579 Views
    D
    I wanted to thank you. This did indeed work. I don't understand why. In my mind, target_link_libraries is similar to the old libtool linker step. It would come at the end of the process. Why is this needed to even get the compiler to find the header files? I would have thought that the find_package is what handles that. Either way, though, I got the code to build and run, so I'm a very happy camper again!
  • QMQTT

    Unsolved
    23
    0 Votes
    23 Posts
    3k Views
    SGaistS
    That is strange. One thing you can do is add a custom step in Qt Creator and call make install from it.
  • License: What does this mean

    Unsolved
    3
    0 Votes
    3 Posts
    254 Views
    SGaistS
    Hi, @maxwell31 said in License: What does this mean: See also slide 3 https://de.slideshare.net/qtbynokia/qt-licensing-explained Nokia is not the owner of Qt anymore since a long time. As for your questions, you should contact the Qt Company for more information or a lawyer.
  • QDesktopServices.openUrl fails to open local file on Ubuntu

    Solved
    21
    0 Votes
    21 Posts
    4k Views
    E
    @eyllanesc said in QDesktopServices.openUrl fails to open local file on Ubuntu: @efremdan1 I don't recommend using relative paths as they will depend on where the "current location" is. In your case it seems that you are executing the script of the form: python script.py but if at another time you execute it as python foo/script.py it may fail. Relative paths are one of the most common causes of silent errors that are the worst at debugging. You're indeed correct. Thank you.
  • This topic is deleted!

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

    Unsolved
    3
    0 Votes
    3 Posts
    35 Views