Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Is it possible to replicate/mirror the inside content of a transparent rectangle

    Unsolved
    2
    0 Votes
    2 Posts
    166 Views
    A
    Hello all, I was able to complete the project. For this project as i required the need to replicate/mirror the area enclosed under the transparent rectangle, I made the use of ShaderEffectSource along with grabToImage which helped me to get what I was trying to achieve out of this project. Let me know if someone requires the code to checkout. Thank you!
  • How to load a PLY file into a QT widget using VTK

    Unsolved
    1
    0 Votes
    1 Posts
    211 Views
    No one has replied
  • rightmouse single click on the desk

    Unsolved right-click qtcreator 5.14
    2
    0 Votes
    2 Posts
    344 Views
    C
    @Matcha2024 Welcome to the Qt Forums. What your unspecified operating system does when you right-click on its desktop is down to that operating system. What that has to do with an unspecified version of Qt Creator, installed in an unspecified way, is not clear. I am only guessing at your problem because the description is so poor.
  • QProcess::execute works, QProcess::startDetached doesn't

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    C
    @ModelTech said in QProcess::execute works, QProcess::startDetached doesn't: When I do a normal run, the QTemporaryFile is not created at all, It does get created. I assume you have a stack-based QTemporaryFile object so that, "the file will subsequently be removed upon destruction of the QTemporaryFile object." So as you leave that scope the file vanishes. Whether your child process ever sees the file will simply be a race. I expect that the process starts faster than the code finishes the scope rarely, if ever. Look at QTemporaryFile::setAutoRemove() to alter that behaviour. Your child process needs to clean up the temporary file itself. while it does get created when I run stepwise in debug mode. Yes, while you are paused inside the scope that contains the QTemporaryFile object the associated temporary file will exist. But even then, there is a problem with the executed process in that Qt Creator seems to set PYTHONHOME which it shouldn't as that breaks the called process for using a different Python installation... Qt Creator, by default, just passes on the environment it inherited. This is all configurable in the project settings. [image: c53b7325-4428-47ae-b0fb-b37ea62f108b.png] [image: aa7fe25b-7793-45bf-9edd-4a82ead35e91.png]
  • QEvent::ShortcutOverride problem

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    Axel SpoerlA
    @Ben-ny Please create a minimal, compilable reproducer.
  • QLCDNumber change display signal

    Solved
    4
    0 Votes
    4 Posts
    297 Views
    SGaistS
    @gfxx hi, Why te-implement QLCDNumber ? Simply connect your logic to the signal that will change the value of QLCDNumber
  • To Axel Spoerl

    Unsolved
    2
    0 Votes
    2 Posts
    330 Views
    Axel SpoerlA
    @AnneRanch Hello from freezing Oslo, does the project build or configure (=run CMake)? I guess the latter, because I wouldn't to of automagic builds. Uncheck Edit->Preferences->CMake->Autorun CMake
  • This topic is deleted!

    Unsolved
    6
    0 Votes
    6 Posts
    18 Views
  • How to build .so files from existing C++ app using Qt Creator

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    @JacobNovitsky TARGET should just contain the name of the library. Nothing else. No prefix, no suffix.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    37 Views
  • How to capture the output of the Qt program?

    Unsolved
    5
    0 Votes
    5 Posts
    706 Views
    JonBJ
    @HyEISN When you have a GUI program that does not normally produce any output, neither on stdout nor stderr. I am not sure what you are saying you see from where under what circumstances. In principle the code you showed is fine. If, say, you make the sub-process program a console application and have it just go like printf("Hello world\n") and exit you should find you receive that string back in your calling (UI) program. Does that work?
  • Segmentation fault in deployed app, not in qtcreator

    Solved
    11
    0 Votes
    11 Posts
    956 Views
    O
    Solved ! I had to add a subdirectory "scxmldatamodel" in the directory of the deployed app, with the library "libqscxmlecmascriptdatamodel.so" in it, then ldd indicated that the library "libQt6Qml.so.6" had to be added too. Then everything works perfectly. Thanks to all for the suggestions and support.
  • DLT Logging with QT: "DLT" package not found

    Unsolved
    2
    0 Votes
    2 Posts
    375 Views
    C
    @Super_QT_Enthusiast Looking in the source, I would expect you should have a FindDLT.cmake file in cmake's search path so that: find_package(DLT REQUIRED) might get closer to the result.
  • How to link .so files's header to other project

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    jsulmJ
    @JacobNovitsky said in How to link .so files's header to other project: but still it calls 30-60 seconds per build Are we talking about complete rebuild of the project or incremental builds after changing some parts of the code? How big is the project (how many lines of code)?
  • The issue of Bluetooth scanning connection crash

    Unsolved
    6
    0 Votes
    6 Posts
    755 Views
    H
    I feel like everyone's response. Currently, I have negotiated with my team to compromise on using only one process to scan Ble. In addition, I have found that the debugging program outputs "qt. bluetooth. winrt: onBluetoothLEDeviceFound: No device given"? It's strange, but I didn't set a situation when running it
  • Missing gray background in tableview

    Unsolved qtableview qsqlquerymodel
    5
    0 Votes
    5 Posts
    810 Views
    Christian EhrlicherC
    Do you use Qt6. 7 on win11? Then you are probably using the windows 11 style.
  • QTcpServer no such slot warning

    Solved
    4
    0 Votes
    4 Posts
    307 Views
    P
    I changed the code to this and it works connect(server_,&QTcpServer::newConnection, this, &TcpServer::NewTcpConnection); Thanks,
  • unable to create python code - libexec folder containing UIC not present

    Unsolved
    7
    0 Votes
    7 Posts
    855 Views
    SGaistS
    @mashewt hi, What exactly did you install ?
  • QtConcurrent::mapped with a member function with QEventLoop

    Unsolved
    3
    0 Votes
    3 Posts
    311 Views
    D
    @hskoglund I just tried, it did not work. I understand the bug now (at least I believe I do): https://www.toptal.com/qt/qt-multithreading-c-plus-plus Tasks that don’t need the event loop. Specifically, the tasks that are not using signal/slot mechanism during the task execution. Use: QtConcurrent and QThreadPool + QRunnable. Tasks that use signal/slots and therefore need the event loop. Use: Worker objects moved to + QThread. I was hoping to avoid digging deeper into multithreading and instead using QtConcurrent::mapped() but it seems I will have to dig deeper.
  • Managing multiple qt sub-projects with git submodules

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    E
    Hi Try to using symlinks. F.e.: base subprojects (git repo every): simple_txt_handle simple_statistic simple_int_handle simple_statistic simple_statistic if main prj using all of above subdirs, than duplication occur. To avoid duplication may using symlinks. So, simple_txt_handle symlink[simple_statistic] simple_int_handle symlink[simple_statistic] simple_statistic result: simple_statistic alone in project, git ok. my OS: win10, NTFS