Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Weird setGeometry issue in 6.6.2 Desktop

    Unsolved
    2
    0 Votes
    2 Posts
    193 Views
    W
    @wesblake 3 days in and I have gotten nowhere. I'm reproducing this on any 6.X version of Qt in App 2, still works fine in any of those versions on App 1. Test team does swear the last version (6.4.3) it didn't happen but now they're seeing it in the last released version too, so I'm wondering if it could be some Windows OS update that started it?
  • QButtonGroup difficulty

    Solved
    7
    0 Votes
    7 Posts
    460 Views
    Q
    @Pl45m4 said in QButtonGroup difficulty: btnGrp->button(someId)->setChecked(true); Yeah! Nice!
  • connect issue - receiver text does not change

    Unsolved
    7
    0 Votes
    7 Posts
    533 Views
    J.HilkJ
    @AnneRanch So do I - expect too much...I expect before replying to once a while READ the post - at minimum. And I expect people to read the documentation or use google before posting a question, but sadly very, very few will do so. Refraining from social innuendos = such a telling person to expect too much - as a secondary expectation. You haven't yourself set a topic to solved in 2-3 years. And you also posted here yourself that you will not set topics to solved: It is your opinion that posting "solved" will help others , however , it is my opinion it will not, therefore it is pointless to argue about it. It's by no means an innuendo, it's stating a fact. .and it would be foolish to admit I had a typo, right ? no it would not, we all make errors big and small. A simple typo has cost me myself days, that was not too long ago too. No-one will make fun of you or think less of you, for something like that.
  • 0 Votes
    9 Posts
    712 Views
    E
    thank you for your help. it is working now. for anyone who may face the same error , you have to include the header file which is #include "../qgroundcontrol/libs/mavlink/include/mavlink/v2.0/ardupilotmega/mavlink_msg_rangefinder.h" in you vehicle.cc file .
  • How can QSS set up transition animations like CSS3?

    Solved
    3
    0 Votes
    3 Posts
    718 Views
    M
    @SGaist All right, thanks for you answer.
  • 0 Votes
    1 Posts
    158 Views
    No one has replied
  • Building static QT with openSSL support

    Unsolved
    1
    0 Votes
    1 Posts
    206 Views
    No one has replied
  • How to compile icu statically into Qt 6?

    Unsolved
    5
    0 Votes
    5 Posts
    905 Views
    S
    @Alxi11 said in How to compile icu statically into Qt 6?: I want to compile icu statically into qt so that my app won't search for icu libs. ICU decides itself if it is static or dynamic. Through package managers you always get dynamic libraries. There is nothing Qt can do about this. Most likely, you have to compile ICU statically yourself. And then you need to teach Qt to link against the static library. This basically means that you also need to compile Qt yourself and during Qt compilation point it to your static ICU library. Once you have a Qt library compiled to link against a static ICU, you can use that Qt library just like normal inside your own applications. @Alxi11 said in How to compile icu statically into Qt 6?: Should I add -static-runtime to my configure command or add cmake options? -static-runtime is just about the C or C++ runtime. There is no command to link to a dynamic library as if it where static. Most likely the actual problem you are trying to solve is that not everybody has the right libs installed on their machine. We are using linuxdeploy and linuxdeployqt to create an AppImage which has all dynamic libraries included (there is also snap and flatpack). Only downside: these check that you are running on an older Linux distro in order to make it compatible with most supported Linux versions out there.
  • QWebEngineView widget chache and coockies

    Solved
    2
    0 Votes
    2 Posts
    234 Views
    gfxxG
    i reply by my own: QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::DnsPrefetchEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::PdfViewerEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::Accelerated2dCanvasEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::TouchIconsEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::WebGLEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::HyperlinkAuditingEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true); QWebEngineProfile::defaultProfile()->setPersistentCookiesPolicy(QWebEngineProfile::ForcePersistentCookies); QWebEngineProfile::defaultProfile()->setCachePath("/home/xx/Doc/coockie"); QWebEngineProfile::defaultProfile()->setPersistentStoragePath("/home/xx/Doc/chache"); seems these settings is enought and no need other ..... after some test I see significant improovemnt of loading page addin the last pieces of code .... and no see better result with the original code posted ..... I see differences only if leave aout "profile" settings ..... but only because chache and coockies is not used in "standard" mode .... Perhaps if you have some eavy process run on gui qwebengineview show web pages slowly with ethernet connection at 1Gb .... where onpecv show realtime grab in fluent way ...... So seems qwebvidgetengine is ok only for real small opertation on web ..... like dowload somethings or starting a chat ..... not for sure for play a video in streaming for example ..... or maybe I make something wrong (on that pc I have the latest chromium and chrome version). best regards
  • Memory Consumption Issue

    Unsolved
    4
    0 Votes
    4 Posts
    426 Views
    jsulmJ
    @manuelschneid3r Use a proper memory analyzer like Valgrind
  • array have data but use QJsonValue value = array.at(i); no content

    Unsolved
    3
    0 Votes
    3 Posts
    196 Views
    C
    @bestmyf_001 Assuming that data_value is actually a QJsonArray... what is the value of i and how many elements are in the array? See QJsonArray::at()
  • Client , Server communication

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    _
    @__d4ve__ I used socket->bytesAvailable() and it seems to solve the problem.
  • QLineEdit:hover { background: blue; } only changes color when it has focus

    Unsolved
    9
    0 Votes
    9 Posts
    615 Views
    Axel SpoerlA
    @Mighty_Pig Very well, I’ll look into it then.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    8 Views
  • How to create menus with design studio?

    Unsolved
    6
    0 Votes
    6 Posts
    861 Views
    Tom assoT
    @Sofiakim - Note that I am using QtQuick/QML (not Qt Widgets) I assume that Design Studio as well as qtcreator would provide tools to create menu bars and menus, but I cannot for the life of me find those tools in qtdesignstudio (4.4.0) or qtcreator (12.0.2, 13.0.0). Can you please tell me specifically where to find these menu-creation tools? Thanks!
  • Project ERROR: Unknown module(s) in QT: bootstrap-private

    Unsolved
    5
    0 Votes
    5 Posts
    812 Views
    S
    @ananomous Do not use a "-" in prefix... WRONG: ./configure -release -prefix /usr/local/Qt-5.7.0 OK: ./configure -release -prefix /usr/local/Qt5.7.0
  • make install doesn't work

    Unsolved
    2
    0 Votes
    2 Posts
    201 Views
    C
    Have you tried running make install after you build the project? Are you sure that test.dll, which is indeed a strange "header", lives in the root directory of the current disk?
  • ComboDelegate does not display list.

    Solved
    9
    0 Votes
    9 Posts
    457 Views
    SGaistS
    Setting the edit trigger comes to mind.
  • When changing item in QGraphicsScene, the old content is still displayed

    Unsolved
    2
    0 Votes
    2 Posts
    182 Views
    Q
    Upon further inspection, it turned out that the problem only occurs when the widget containing the QGraphicsView has the attribute Qt::WA_TranslucentBackground set. setAttribute(Qt::WA_TranslucentBackground); Is this really the intended behaviour or might this be a bug?
  • QSortFilterProxyModel class indexes don't mapping with source model indexes

    Unsolved
    8
    0 Votes
    8 Posts
    483 Views
    M
    @Christian-Ehrlicher Thank you for help! Solution was found. I just missed in my garbage code, and i did't totally understand what i was doing for a lot of time.))))