Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • No CMake configuration found

    Unsolved
    3
    0 Votes
    3 Posts
    457 Views
    hskoglundH
    Hi, just a guess but maybe you need to enable the aarch64 architecture if you're crosscompiling, something like this: sudo dpkg --add-architecture arm64 sudo apt install libc6:arm64
  • Threading scene

    Unsolved
    8
    0 Votes
    8 Posts
    833 Views
    JonBJ
    @micha_eleric I had not noticed, but as @J-Hilk has said 400,000,000 is a lot of items to draw ;-) Not to mention, this is a lot for the user to look at/I'm not sure there are even that many pixels on the screen! But I guess you will see this is just a test. If you have a "lot" of add/move/delete operations to perform, you must either (a) do the operations in batches on a timer from a "queue" (at least conceptually), presumably from the UI thread, so that the UI has time to render them and remains responsive, or (b) if @SimonSchroeder's principle of "double-buffering"/mutexing works from a thread you would have to release the mutex periodically after batches performed so that the UI thread gets some time to process the updates without blocking on a mutex for too long.
  • Can anybody explain the Qt::BlockingQueuedConnection with example ?

    Solved
    18
    0 Votes
    18 Posts
    8k Views
    S
    @mdrost And a DirectConnection is by definition always blocking.
  • Long press button with progress dialog

    Solved
    8
    0 Votes
    8 Posts
    858 Views
    W
    @Christian-Ehrlicher the user will not see well the button because they will have the finger on top of it blocking visibility.
  • QPaintEngine Color Alpha Chanel(opacity) makes everything to draw Image

    Unsolved
    1
    1 Votes
    1 Posts
    142 Views
    No one has replied
  • Custom context menu item

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    G
    Thank you all. I think ill be able to achieve this now. Also thanks for the suggestion I will dig deeper into that stuff.
  • Qt Creator + Ubuntu 20.04

    Solved
    21
    0 Votes
    21 Posts
    14k Views
    S
    https://poe.com/s/fqPkHzQlb2YKt6j9JeAE
  • 0 Votes
    6 Posts
    1k Views
    Christian EhrlicherC
    @Pl45m4 said in Custom widget using and extending Qt's pImpl: It was just about the naming?! Is this the way? :) I would say yes.
  • When is the StyleSheet applied? - Not seeing 'font' updated.

    Unsolved
    3
    0 Votes
    3 Posts
    300 Views
    JonBJ
    @PValentine As @Christian-Ehrlicher has said, you cannot read the effects of stylesheet in Qt code. Try not to set font in code at the same time as using stylesheets. Are you aware there is a QTableView::item CSS selector? This affects all the table's items, there isn't a way of selecting individual ones.
  • QThreads: aggregating results from different threads on main GUI thread safe ?

    Solved
    12
    0 Votes
    12 Posts
    787 Views
    JonBJ
    @starkm42 Yes, if it is only multiple slots in a thread, including the main one, which access a resource then everything is occurring serially, no locking would be needed.
  • QImageReader: File not found

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    K
    @JonB I have also considered whether it is an issue with Android permissions, but I don’t know where to get the answer.
  • This topic is deleted!

    Unsolved
    16
    0 Votes
    16 Posts
    207 Views
  • QRemoteObjectHost connected nodes

    Unsolved
    3
    0 Votes
    3 Posts
    266 Views
    beeckscheB
    @Pl45m4 said in QRemoteObjectHost connected nodes: @beecksche Dunno if it's the right signal but maybe https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectAdded https://doc.qt.io/qt-6/qremoteobjectnode.html#remoteObjectRemoved to keep track of the current connections yourself That's what I thought at first. But if I understand the documentation correctly, the signal is emitted on enableRemoting(). The QRemoteObjectSourceLocation argument also contains no information about a client, only the hostUrl and typename.
  • QPSQL driver not loaded

    Solved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • Testing with multiple QTEST_APPLESS_MAIN

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    R
    @Paul-Colby Thank you for that detailed answer. I'm using qmake so I guess for now I will stick with that "old" structure. But your answer is bookmarked for future use :)
  • From qw5t to qwt6: qtconcurrentrun.h not found

    Unsolved
    3
    0 Votes
    3 Posts
    271 Views
    C
    Further to @Pl45m4's observation, look at the prototypes of the functions you used to pass QwtDoubleRect objects to and you probably see that they now take QRectF @rock37 , what is the connection between the title of this thread and the content of this thread?
  • Changing build directoy

    Solved
    12
    0 Votes
    12 Posts
    827 Views
    M
    @SGaist thank you for your help
  • Map Viewer custom provider

    Unsolved
    2
    0 Votes
    2 Posts
    232 Views
    SGaistS
    Hi, The usual way would be to follow the implementation done by the other plugins. Then you have to deploy it using the same folder structure in your application folder and it should be made available as the other plugins. If not, then you can copy your plugin beside the others in the Qt installation.
  • why i cant write to serial ? | Arduino Uno , QT 5.9.9 , C++ Question

    Unsolved serial arduino qt5.5.9
    4
    0 Votes
    4 Posts
    855 Views
    SGaistS
    Hi, In addition to @Pl45m4, you don't print any information if the opening of the serial port failed. Doing that will help track the issue.
  • Is it expected I have to update the parent widget myself with using QOpenGLWidget?

    Unsolved
    5
    0 Votes
    5 Posts
    465 Views
    KenAppleby 0K
    @NightShadeI Possibly related is that, on Windows, QtCreator's model editor used to have the same defect until the recent upgrade to QtCreator 12. It would leave behind graphics artefacts as you moved elements around. There may be clues in the QtCreator sources. By model editor I mean what you get when you "Add new..." => Modeling => Model