Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.3k Posts
  • QPdfView: No such file or directory

    Solved
    9
    0 Votes
    9 Posts
    853 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
    516 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
    166 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
    829 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
    546 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 ;-)
  • How to create a Checkerboard Pattern in Qt Designer

    Solved
    3
    0 Votes
    3 Posts
    217 Views
    L
    Thank you so much, I'll try your method
  • How to overlap an image with a label

    Unsolved
    7
    0 Votes
    7 Posts
    621 Views
    F
    @Pl45m4 I used labels with fixed coordinates and its worked, what do you mean by anchor lock? Its an expression? I’m not native speaker. Im really getting trouble to adjust the labels coordinates and sizes. Im trying to make simple rule of three based on size proportions of the screen
  • Unable to launch macOS app in sandbox

    Solved
    4
    0 Votes
    4 Posts
    297 Views
    SGaistS
    Glad you found out ! Which libraries were missing ?
  • QScrollArea: Area is not updated while an arrow key is held pressed

    Solved
    5
    0 Votes
    5 Posts
    262 Views
    T
    It seems it's an environment issue not related to the Qt code. On Ubuntu 22.04 under Virtual Box => the issue appears On RedHat 8.9 under a container with Ubuntu 22.04 => the issue does not appear. Thanks Let's mark this issue as solved.
  • C1001: Internal compiler error

    Unsolved
    6
    0 Votes
    6 Posts
    757 Views
    K
    Yes, it was really a bad idea to use the "latest" build tools. I have moved back to (v14.39-17.9) [image: bfbe1195-eedf-4288-bbb9-409690e1eee1.png].
  • VS 2022: How to ensure qsb gets ran?

    Unsolved
    1
    0 Votes
    1 Posts
    105 Views
    No one has replied
  • Feasibility of Embedding Jupyter-like Python Console in Qt using C++

    Unsolved
    8
    0 Votes
    8 Posts
    670 Views
    SGaistS
    You might want to check the Serial port terminal example. Depending on what you want to achieve Kate's terminal(article discussing having it on Windows as well) using Konsole might be another possibility. But all in all, you really need to define what you want to do as depending on that you will either ensure your user has python installed or you'll have python built into your application.
  • Help needed to connect slots and signals across qtplugins in my application

    Unsolved
    3
    0 Votes
    3 Posts
    197 Views
    Pl45m4P
    @krisby Hi and welcome, I was wondering if there were any good tutorials that show how to connect to a signal emitted from one plugin in another plugin. why do you need a tutorial to write a single line connect statement? You connect in the same way as you would connect other QObjects. I know how to do this in a normal application but not through an application that uses plugins. At some point you have to load your plugin with your app... then you have both plugins available and then you can connect them. Anyway, the idea of connecting two plugins with each other, seems like bad design. They should be connected to your main app and not with each other. On load, connect the plugin with some signal in your main app. Maybe there are even better or cleaner ways. Check out the DocumentViewer Example and how it's done there. (There is a ViewerFactory which loads different ViewerPlugins... and they also have signals connected) https://doc.qt.io/qt-6/qtdoc-demos-documentviewer-example.html
  • 0 Votes
    3 Posts
    342 Views
    SeDiS
    Thanks! With upgrading to Qt 6.7.2 the warning vanished.