Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Qline:F:angle seems not correct

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

    Unsolved
    4
    0 Votes
    4 Posts
    111 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
    55 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
    170 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
    97 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
    87 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
    105 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
    58 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
    157 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
    134 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.
  • Building Qt from source on Windows

    Unsolved windows
    10
    0 Votes
    10 Posts
    185 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
    725 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
    141 Views
    K
    @Hanson @jsulm Thanks a lot!
  • QTableView (QHeaderView) sort indicator alignment

    Unsolved
    4
    0 Votes
    4 Posts
    147 Views
    R
    Yes, this is Windows 11 but with dark theme (which is "fusion", the common style). With the default light Windows theme the indicator is on Top&HCenter, in that case my issue is not valid.
  • how to set app-ico ?

    Unsolved
    7
    0 Votes
    7 Posts
    203 Views
    C
    I found that the info.plist file is sometimes generated and sometimes not generated. I don't know why
  • uninitialized data passed to QStringList QCoreApplication::arguments()

    Unsolved
    31
    0 Votes
    31 Posts
    1k Views
    jeremy_kJ
    @rparon said in uninitialized data passed to QStringList QCoreApplication::arguments(): Hi jeremy_k, that is an interesting point, The point seems to have been missed. Treating const data as non-const is undefined behavior, and the C++ standard allows a conforming implementation to do anything when UB is invoked. Command line arguments and historical usage are irrelevant.
  • Qt and Apple 'Glass' UI in macOS 26

    Unsolved
    11
    1 Votes
    11 Posts
    1k Views
    A
    @AndyBrice I have updated macOS26 and my Qt6 apps line edits are not visible at all. When Qt planning to fix it or we have to do this extra work? Do you have any idea? [image: 8bb35def-89ed-49c3-a6d6-b087c93e30d5.png]
  • Is it possible to get the x and y of a QSlider's handle?

    Unsolved
    6
    0 Votes
    6 Posts
    126 Views
    M
    @Kent-Dorfman I'm setting the style app.setStyle(QStyleFactory.create('windowsvista')) like this, and since I'm using a Windows only audio control library, I don't really care for other OS'es