Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Remove space between images and text in flowlayout

    Solved
    8
    0 Votes
    8 Posts
    746 Views
    beautifulcloudB
    Hey @mpergand Thanks for that test, that's the goal I'm looking for I thought it was a change depending on the versions but no Actually @JonB the problem was there, since I had put in the css style of the parent widget QWidget I thought that its border would apply only to this one, but I forgot that it was necessary to specify QWidget#id and that caused borders on the child elements. How to drown in a drop of water [image: f495199e-1aee-45d9-ab17-177ec94b8516.png] thank you to all of you :)
  • How to avoid floating point problems?

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    JonBJ
    @mhn2 Certainly you should discuss. But I believe you are laboring under a misunderstanding/assumption here. You are thinking if you can get the number 13.23 or the string "13.23" into the file that will make it so when the reader fetches it it will convert those digits which make up a string (even if it's stored as a 13.23 number the JSON will still have to convert string to number when it reads it) to exactly the binary, floating point representation of 13.23. But it won't, because (I believe) you are showing that the IEEE binary representation of 13.23 simply is 13.229999542236328, and that's as close as you going to get whatever you do.
  • Trouble Running Python Script in Qt - Using QRC Resources

    Unsolved qt6 python qrc deploying
    10
    0 Votes
    10 Posts
    2k Views
    V
    @JonB said in Trouble Running Python Script in Qt - Using QRC Resources: @Veltroniv I built an .exe file from my .py file with all the dependencies (included libraries etc...). I presume you mean that whatever tool you used to generate a .exe from the .py source embeds a standalone Python interpreter into that executable, so no external Python is needed? yes, i guess. Its working properly so... And, just checking, what did you use to "gathering the path to exe file"? I assume you mean to the top-level executable of your Qt application, and then you locate the other executable generated from the Python script because you know it's relative to where your top-level executable will be installed? Yess, thats correct. It might not have been clear.
  • CentralWidget hide & show issue

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    SGaistS
    @Dev-G KISS is a good mantra to keep when developing :-) Glad it's working now !
  • Get direction of mouse movement

    Solved qt5.13.1 c++ mouse events
    3
    0 Votes
    3 Posts
    617 Views
    ScleaverZer0neS
    @jsulm I just thought of that a moment ago and came here to edit the post and read your answer lol. Thanks tho!
  • GLB and GLTF file content screenshot

    Unsolved
    8
    0 Votes
    8 Posts
    724 Views
    jsulmJ
    @Sridharan https://doc.qt.io/qt-6/qt3drender-qsceneloader.html contains a link to https://assimp.sourceforge.net/main_features_formats.html Glb seems to be supported. If it does not work for you you should check whether the plug-in responsible for loading these format could be loaded: set QT_DEBUG_PLUGINS to 1 and run your app, check its output. Could be that the plug-in depends on assimp library which is maybe not present on your machine.
  • My project is working when i click "start" , but not working in the debug folder

    Unsolved
    2
    0 Votes
    2 Posts
    125 Views
    SGaistS
    Hi and welcome to devnet, Use windeployqt. You are missing at least the platform plugin.
  • Position images in a widget and return to the line on overflow

    Solved
    6
    0 Votes
    6 Posts
    492 Views
    beautifulcloudB
    Hello @mpergand , As with the old code I integrated the flowlayout object in my project and I didn't manage to implement it in QT Design, but it does not matter because I left to do it in the source code. But the flowlayout was what I was looking for so thanks!
  • make qgraphicsdropshadow effect work on transparent widget colors

    Unsolved
    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • setColumnHidden() not working for cell widget ?

    Solved
    9
    0 Votes
    9 Posts
    561 Views
    I
    @JonB yes... you are right... my fault...
  • CMake not include .dll

    Unsolved dll cmake
    5
    0 Votes
    5 Posts
    1k Views
    semlanikS
    @timob256 target_link_libraries(${PROJECT_NAME} PRIVATE ${Qt5AxContainer_LIBRARIES}) target_link_libraries(compas_com_example PRIVATE Qt${QT_VERSION_MAJOR}::Core)
  • Can someone quickly point me to

    Unsolved
    3
    0 Votes
    3 Posts
    236 Views
    batistaB
    @Lahearle Example can be found here... https://doc.qt.io/qt-6/stylesheet-reference.html Like this: QLabel { background-color: yellow } QLineEdit { background-color: rgb(255, 0, 0) }
  • Qt bug report closed incorrectly... I believe

    Unsolved
    8
    0 Votes
    8 Posts
    473 Views
    P
    @Christian-Ehrlicher said in Qt bug report closed incorrectly... I believe: @paulmasri said in Qt bug report closed incorrectly... I believe: As a member of the community I don't have the ability to re-open it. I have done all I can by responding. When you created the bug report then you can also re-open it. Thanks! I did not know that. I have reopened it, along with a comment to justify why.
  • 0 Votes
    6 Posts
    370 Views
    M
    @batista I see the method: MyTextEdit::receiveDataFromMain(Qstring) What prevents you to send the string directly from MainWindow.
  • forward use of Q_ENUM

    Solved qenum
    3
    0 Votes
    3 Posts
    313 Views
    A
    @SGaist Thanks. Sometimes we do not think about the simplest solutions.
  • how to calculate a fixed widget size?

    Unsolved
    3
    0 Votes
    3 Posts
    294 Views
    M
    @ChrisW67 i am only putting a single uppercase character into the button and label, because this is for a type of single character display where i put them into a row in a grid layout. also neither the button or label have a QSizePolicy i haven't specified a min/max size for them either. i am wondering if that has anything to do with it.
  • Debian 12, Qt Creator 10.0.2, lldb

    Unsolved
    3
    0 Votes
    3 Posts
    321 Views
    mrdebugM
    @jsulm Hi. Using gdb this popup appears: "The selected build of GDB does not support Python scripting. It cannot be used in Qt Creator." In Debian 11 all works well.
  • Qt Serial Port Write and Read Issues

    Unsolved
    4
    0 Votes
    4 Posts
    607 Views
    jsulmJ
    @Mahis said in Qt Serial Port Write and Read Issues: What exactly should I do in my code to not access QIODevice from outside the thread? Don't use threads: Qt is an asynchronous framework, most of the time there is no need to use threads.
  • Qt OpcUa X509 certificate error - ExtendedKeyUsage

    Unsolved
    1
    0 Votes
    1 Posts
    134 Views
    No one has replied
  • QThread performance

    Unsolved
    4
    0 Votes
    4 Posts
    705 Views
    G
    @yalee said in QThread performance getaway shootout: Hi, Im using QthreadPool to start multiple thread to perform same task (eg, running same calculation function) but the time it takes for each task is around 5 milliseconds regardless if i create 1 thread or 5 thread in linux. I understand that this might be related to thread scheduling but i was wondering how i can increase the performance of the thread (reducing the task execution time from 5 milliseconds to say 3 ms or less), i did try to set the priority but base on the document it does not work on linux. Can anyone provide suggestions or if there are any other method to boost performance? thanks in advance. Problems with Qt::DirectConnection could arise. As stated in the manual, threading must be utilized with queued connections. You may find this class useful if you look at QtConcurrent with QFuture and QFutureWatcher.