Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 0 Votes
    8 Posts
    422 Views
    Pl45m4P
    @Zbigniew-Sch said in Program does not work properly using QFileSystemModel and QTreeView (Qt 6.7.2) under Windows 11: Are you from the Qt development team? This is a user forum... most people here are users like you with more or less experience. Debug your app to see why and where it crashes. If you think it's a bug related to QFileSystemModel and Win11, create a bugreport here
  • How to get minimum size Mainframe?

    Solved qwidget
    8
    0 Votes
    8 Posts
    870 Views
    Pl45m4P
    @SiGa As @SimonSchroeder said above, if you were using layouts properly, there's almost no way that things overlap, when resizing the main widget. Only free floating widgets, which are not part of any layout might do.
  • QBoxLayout misplacing

    Unsolved
    8
    0 Votes
    8 Posts
    472 Views
    G
    up .
  • Adding notes to QCalendarWidget

    Unsolved
    3
    0 Votes
    3 Posts
    231 Views
    jsulmJ
    @symHeisenberg You could show a widget when https://doc.qt.io/qt-6/qcalendarwidget.html#clicked is emitted where you show the notes for the date which was clicked.
  • GStreamer with QT6

    Unsolved gstreamer gstreamer1.0 gst
    24
    0 Votes
    24 Posts
    6k Views
    JoeCFDJ
    @Joe-von-Habsburg https://stackoverflow.com/questions/10810279/finding-libraries-using-pkg-config-in-windows open one of the pc files and check if the prefix is correct. The installed pkg config path is basically fixed under lib. Do not try to change it.
  • Deployment not working properly

    Solved
    7
    0 Votes
    7 Posts
    489 Views
    L
    I use the bin folder as an argument for the windeployqt command, and it doesnt work if i do it in another folder. However, running the windeployqt in the build folder worked just fine. Thanks for your help with that, i really appreciate it. Now i know which issue i am having with the form that doesnt open. For some reason, it says that the QtQuick.Effects module is not installed, even though i just checked to see if i have the additional libraries downloaded, and i have those. I dont know if i have to add something to my .PRO or something like that but it just says its not downloaded anymore
  • Sqlite query

    Unsolved sqlite query
    8
    0 Votes
    8 Posts
    878 Views
    artwawA
    @apfal Happy you got it working. Good luck!
  • Automatic registration of custom types?

    qmetatype
    2
    0 Votes
    2 Posts
    337 Views
    Pl45m4P
    @CJha Look here. :)
  • Conversion of Qvector<qreal> to QVariant fails

    Unsolved qvariant qvector qmap
    7
    0 Votes
    7 Posts
    949 Views
    Pl45m4P
    @sayan275 It's also always better to post the relevant code as text and not as image, so others can reproduce it easier.
  • QPdfView: No such file or directory

    Solved
    9
    0 Votes
    9 Posts
    856 Views
    J
    @Axel-Spoerl Thanks, finally my code is working
  • How do I get some laptops to not need to install vc_redisk on msvc2019?

    Unsolved
    6
    0 Votes
    6 Posts
    521 Views
    cristian-adamC
    At https://learn.microsoft.com/en-us/cpp/windows/deployment-in-visual-cpp?view=msvc-170 we can see that there are 3 ways of having the Visual C++ Runtime available: Central deployment Local deployment Static linking The easiest way it's the local deployment, which means that you only have to have the above mentioned dlls next to your executable. If you are using CMake, then you just have to add one line to your CMakeLists.txt file: include(InstallRequiredSystemLibraries)
  • lupdate errors

    Unsolved
    6
    0 Votes
    6 Posts
    331 Views
    MortyMarsM
    Thank you @SGaist for your advice and encouragement. I'm going to work on the subject
  • Limit the number of visible items on QComboBox

    12
    1 Votes
    12 Posts
    16k Views
    S
    @MadisonTrash It works thanks!!
  • opengl+interaction

    Unsolved
    2
    0 Votes
    2 Posts
    167 Views
    SGaistS
    Hi and welcome to devnet, Are you thinking about something like QRubberBand ?
  • Scaling problems with the apps and preview Windows 11

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    cristian-adamC
    @JUDE34823 said in Scaling problems with the apps and preview Windows 11: My laptop defaults to (Recommended) 150% scaling at 2560x1600 150% is the issue here. QT_SCALE_FACTOR_ROUNDING_POLICY is an environment variable that controls how the 1.5 gets rounded. You might want to flor the value. Qt6 has a different default value than Qt5. Qt Creator has a combobox which allows the user to select the rounding policy. See https://bugreports.qt.io/browse/QTCREATORBUG-29501
  • the ".a" library and it's functions not recognized after being added to project

    Solved
    6
    0 Votes
    6 Posts
    348 Views
    S
    @SGaist done
  • a textedit text color problem

    Solved
    4
    0 Votes
    4 Posts
    347 Views
    JonBJ
    @lfmissonb Indeed, because that specifies its own font (and so color) for the fragment you are adding.
  • Lambda Evaluation in Signal/Slot Connection or QTimer

    Solved
    8
    0 Votes
    8 Posts
    841 Views
    JonBJ
    @Crag_Hack Yes, as I wrote earlier ISTM you do understand lambdas and captures! :) Lambdas do their capture work where they are in the code, e.g. as a connect() statement is met to set up a signal/slot. The lambda-slot then uses those variables in its code when the slot is executed at a future time. With an = the variable's value is copied at connect()-time, so the slot will always its value as it was at that instant, while with an & only a reference to the variable, not its current value, is copied, so when accessed in the slot it will have its value as it is at that time. An &-captured variable must therefore still be in scope/alive when the lambda body executes, which is not required/not relevant for an =-captured one.
  • Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]

    Unsolved
    5
    0 Votes
    5 Posts
    548 Views
    Pl45m4P
    @Axel-Spoerl said in Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]: Ouch, I’ve been there before. It always confuses me I also got confused by some other post lately, where OP wants to build Qt5 x64 from source and used -platform -win32... At first I thought is this wrong but apparently it's not :D
  • C++ routine - Rounding error and unexpected result.

    Solved
    5
    0 Votes
    5 Posts
    422 Views
    MortyMarsM
    Hi @ChrisW67 I'm sorry I haven't replied to your message (was on holiday with the family...). Thank you for your suggestion. I'm going to keep the associated code in my tips ;-)