Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.3k Posts
  • Multimedia recording filtered to 20kHz bandwidth

    Solved
    8
    0 Votes
    8 Posts
    109 Views
    S
    Ah! It's PipeWire. pw-cat --record --target alsa_input.usb-Hanlincrest_Ltd._FUNcube_Dongle_V2.0-00.pro-input-0 --rate 192000 --format s16 sdr.raw sox -t raw -r 192000 -e signed -b 16 -c 2 sdr.raw sdr.wav ...results in a wav file with the same 20kHz filtering. Now I need to find out how to fix that. "Pro Audio" setting isn't working. I guess this is solved from a Qt point of view.
  • Building Qt Multimedia from sources on Windows

    Unsolved
    2
    0 Votes
    2 Posts
    39 Views
    jsulmJ
    @Pedro-Vicente Check the config.log file or use -v parameter when calling configure to get more information.
  • How to get the android-g++ ?

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
    jsulmJ
    @Khadeer Why do you need the Gnu compiler? Just recompile using clang from Android NDK.
  • Custom Widget put in ScrollArea with no scrollbar

    Solved
    8
    0 Votes
    8 Posts
    96 Views
    F
    @Zbigniew-Sch Thank you for your answer, I have solved my problem. I created custom MyWidget derived from QWidget and overwrited paintEvent method. Then called setGeometry in constructor method and called resize() when scaled. It works as I want.
  • Qline:F:angle seems not correct

    Unsolved
    3
    0 Votes
    3 Posts
    42 Views
    F
    @Christian-Ehrlicher Thank you very much !
  • 0 Votes
    1 Posts
    40 Views
    No one has replied
  • Unable to get hold of 6.8.4 LTS

    Unsolved
    4
    0 Votes
    4 Posts
    94 Views
    jsulmJ
    @Qt6User https://doc.qt.io/qt-6/build-sources.html
  • CMake and AUTOMOC: *syntax error: 'constant'* when using FetchContent

    Unsolved cmake
    2
    0 Votes
    2 Posts
    39 Views
    SGaistS
    Hi, Can you provide a minimal project that shows this issue ?
  • Adding a layout inside an existing layout

    Solved
    9
    0 Votes
    9 Posts
    123 Views
    JonBJ
    @Pl45m4 It was not intended ironically. It was like that when I last investigated, maybe copy/paste etc. is available now. I will check next time I am in Designer.
  • Possible QCommonStyle (QStyleSheetStyle) bug

    Unsolved
    3
    0 Votes
    3 Posts
    70 Views
    R
    Jira ticket has been raised for Issue 1: QTBUG-138495
  • How does AUTOMOC and CMake determine which sources toscan?

    Unsolved
    5
    0 Votes
    5 Posts
    58 Views
    Christian EhrlicherC
    @snoriman said in How does AUTOMOC and CMake determine which sources toscan?: think there is more to it then that because how would adding include_directories() trigger automoc on an external dependency ( It does not.
  • How to scale columns evenly?

    Unsolved
    6
    0 Votes
    6 Posts
    70 Views
    Pl45m4P
    @Nmatan said in How to scale columns evenly?: but is there no method to at least have an 'initial' size for the columns See https://doc.qt.io/qt-6/qheaderview.html#ResizeMode-enum
  • Where is the Wizard for "Qt Designer Form Class" located?

    Unsolved
    2
    0 Votes
    2 Posts
    43 Views
    Christian EhrlicherC
    This might be the Qt Designer library from QtTools repo
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Access variable from a slot

    Unsolved
    7
    0 Votes
    7 Posts
    136 Views
    JonBJ
    @jamat13 Do not use signals/slots for either receiving an immediate reply from any attached slot(s) nor for "waiting" for something to happen as a consequence. That is not what they are intended for --- they are a "notify and continue" paradigm. If you want a "response" instead either use a direct function call or in the signaller emit the signal, save whatever state is necessary and continue to the Qt event loop, while the slot emits another signal when it is finished which the originally signalling side acts on in its own slot when it arrives. Use a QTimer at the signalling side if you need to know that the slot has not "replied" within a period of time. answered = false; emit action ("toolbar", "1whatpage"); QElapsedTimer timer; for (timer.start (); !timer.hasExpired (2000); ) { if (answered == true) { *dbg << "answered " << timer.elapsed () << "ms page " << page[1] << "\n"; dbg->flush (); answered = false; break; } Your loop is very "busy": it burns your CPU and completely blocks the thread it is in. Since it does not enter the Qt event loop it does not allow normal processing to continue. Behaviour of your code probably depends on whether attached slot(s) run in the same thread or a different one.
  • Too many input files specified in moc

    Unsolved
    4
    0 Votes
    4 Posts
    106 Views
    HansonH
    @SirMarcin I'm not sure how to deal with your situation :( but the <AdditionalIncludeDirectories> node in the props file is passed to the compiler to specify the directories to include header files, not to compile those directory files.
  • How to create delegates that are always editable?

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
    SGaistS
    Hi, You don't need any intermediate widgets. When reimplementing createEditor, you can return a QColorDialog. You have an example in Python here.
  • Building Qt from source on Windows

    Unsolved windows
    10
    0 Votes
    10 Posts
    129 Views
    SGaistS
    @snoriman hi, The aqtinstall project seems to fit the description: command line installation of Qt.
  • QUdpSocket bind problem

    Solved
    27
    0 Votes
    27 Posts
    423 Views
    Kent-DorfmanK
    @JulsPower I understand you probably lack the motivation and time to do it, but it would be interesting to see the differences in the build between cmake generated makefile an qmake generated makfile. Obviously the two are building/linking differently. Smells like a build flag isn't the same in cmake debug
  • Confusion about QThread & deleteLater

    Solved
    4
    0 Votes
    4 Posts
    118 Views
    K
    @Hanson @jsulm Thanks a lot!