Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Qt application freezes

    Unsolved
    2
    0 Votes
    2 Posts
    852 Views
    Kent-DorfmanK
    @rtyuio said in Qt application freezes: _xcb_conn_wait looks like it's waiting on a connection. You won't know what connection unless it freezes again and you can trigger a core dump for analysis...assumming you are using full debug versions of the app and libraries.
  • Find Package Failed for MQTT Simple Application

    Solved mqtt
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    They are in the sources you already cloned.
  • refresh comboBox with new value

    Unsolved
    10
    0 Votes
    10 Posts
    823 Views
    JonBJ
    @Alfredy If you made the combo not-editable it will not work. Why don't you replace your whole body code (get rid of the if) with: qDebug() << "Setting value"; ui->num->setCurrentText("1234"); qDebug()<<"Set value " + ui->num->currentText(); and see what happens?
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    10 Views
  • Problem with the QMediaPlayer example

    Unsolved
    2
    0 Votes
    2 Posts
    194 Views
    SGaistS
    Hi and welcome to devnet, Which version of PySide6 are you using ? How did you install it ? Which version of macOS ? What type of video are you playing ?
  • Read access violation

    Unsolved
    5
    0 Votes
    5 Posts
    540 Views
    Kent-DorfmanK
    @Gerhard pre or post increment makes no difference because the incrementing of loop variant is done at the bottom of the loop, not the top.
  • OpenCV: No such file or directory

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    SGaistS
    Hi, Using: CONFIG += link_pkgconfig PKGCONFIG += opencv Should be enough
  • no matching member function for call to 'connect'

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    JonBJ
    @t-vanbesien said in no matching member function for call to 'connect': By the way, you wrote 'IOC' in one of your answers, what does it mean ? I wrote OIC => O-I-C => "Oh I See" :)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Layout best practices

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    superagaS
    Hi again @Chris-Kawa, Thanks again for your answers. I'm not used to use designer to make the "skeleton" of the GUI (I feel more confident, and I find it more simple by code) but after read your answer I think that it might be useful to compare the different generated code. I completely agree regarding the nested layouts and the widgets names too... When the used names are really meaningful, otherwise... Thanks also for the objectName explanation, now makes sense and no, I never used it and I have same your thoughts on this (objects name are enough). I can then consider close this thread. Many thanks! Best regards, AGA
  • Build QtDeclarative for Qt5.9.9

    Unsolved
    4
    0 Votes
    4 Posts
    826 Views
    JKSHJ
    @Creatorczyk said in Build QtDeclarative for Qt5.9.9: @JKSH My old project require QDeclarative because I used quick1, I need build QDeclarative Qt Quick 1 was removed in Qt 5.6. If you want to build it, you must download the code from qtquick1.git separately: https://code.qt.io/cgit/qt/qtquick1.git/ C:\Qt\Qt5.9.9\5.9.9\Src\qtdeclarative contains Qt Quick 2.
  • what is reson behind error malloc(): unaligned tcache chunk detected ?

    Unsolved
    12
    0 Votes
    12 Posts
    15k Views
    jsulmJ
    @Qt-embedded-developer Where exactly is this lib located? You can set LD_LIBRARY_PATH (in same terminal where you're calling valgrind) to point to the folder where this lib is located. Keep in mind that you can also use Valgrind directly in QtCreator.
  • How to create a single-shot, one-time connection to a lambda?

    Solved
    7
    0 Votes
    7 Posts
    13k Views
    T
    In Qt6 there is a new connection type Qt::SingleShotConnection. See more in this KDAB blog: https://www.kdab.com/single-shot-connections/
  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    10 Views
  • Widget overlapping other widget in QGridLayout is visible, but unresponsive

    Unsolved
    7
    0 Votes
    7 Posts
    817 Views
    Chris KawaC
    @qwasder85 I don't know Qt's event forwarding code by heart, but my guess is that it uses layout as a shortcut to find the right widget and it gets confused by this. Honestly, unless it's documented somewhere, this looks more like a bug than a feature. I wouldn't rely on it even if it worked. Can't you just make p_sidebar a child of p_work_area if you want to cover it? Sounds like a more sensible approach structure wise.
  • SetGeometry: Unable to set geometry

    13
    0 Votes
    13 Posts
    21k Views
    M
    @hskoglund Thanks, by adding setGeometry(200,200,200,200) my probleam resolved.
  • 0 Votes
    24 Posts
    6k Views
    jsulmJ
    @Dean21 Please show your current code if something does not work...
  • How to add trace in qml file ?

    Unsolved
    3
    0 Votes
    3 Posts
    364 Views
    Q
    @JKSH it something like you mentioned but not same like it. because i have to get the trace information from whole application and as well as may be able to enable and disable that information compile time and runtime. because ultimate goal is when application start and unfortunately it crash then i have to find from where it get crashed using this trace log.
  • error from moc: 'x' does not name a type

    Unsolved
    4
    0 Votes
    4 Posts
    346 Views
    D
    Hi, thank you very much for your attention. Of cause 'X' is just a replacement. I finally found the error: I had a name clash between enum and class - so I started using namespaces and name clash is history.
  • QTest and std::unique_ptr is a bit confusing

    Unsolved
    3
    0 Votes
    3 Posts
    281 Views
    C
    Perhaps your find() function makes the assumption that start and end are zero at invocation and behaves oddly if that is not the case. As the for the split test case still returning 3, this is quite possibly because you are still running the original test executable. Did you ensure you have a clean build of the test cases?