Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.2k Posts
  • How to scale columns evenly?

    Unsolved
    6
    0 Votes
    6 Posts
    68 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
    42 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
    110 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
    93 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
    35 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
    116 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
    391 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
    102 Views
    K
    @Hanson @jsulm Thanks a lot!
  • QTableView (QHeaderView) sort indicator alignment

    Unsolved
    4
    0 Votes
    4 Posts
    106 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
    172 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
    621 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
    873 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]
  • Changing the taskbar icon

    Unsolved
    2
    0 Votes
    2 Posts
    74 Views
    Pl45m4P
    @TolleTafel Why the default python icon?! If you are running a Python script, it shows the icon of your python interpreter executable, if I'm not mistaken.
  • Is it possible to get the x and y of a QSlider's handle?

    Unsolved
    6
    0 Votes
    6 Posts
    84 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
  • Segmentation fault when exiting when linked against Qt 6.9.1

    Solved
    35
    0 Votes
    35 Posts
    3k Views
    S
    @JonB Thanks for the hint, but im in no hurry right now. :D Have a nice day.
  • Accessibility for Custom Painted Items

    Unsolved accessibility screen reader focus issue
    2
    0 Votes
    2 Posts
    106 Views
    SGaistS
    Hi and welcome to devnet, Something is not clear: are you creating a full custom widget ? It seems so but since Qt provides the base classes to create your own custom views within the model view set of classes, it would be good to clarify that first.
  • 1 Votes
    8 Posts
    321 Views
    J
    So i finally found out what the problem was and fixed it... it seems i had given specific size settings to some component via a stylesheet, and some components did not have some/all properties defined in the stylesheet. Providing the correct info via the stylesheet appears to have resolved the situation. Eg. for the radio buttons i now have... QRadioButton::indicator { width: 14px; height: 14px; } in my style sheet, and it seems to properly respect the scaling when i have both types of scaling in use.
  • After using toStdString, the string exhibited abnormal behavior.

    Unsolved
    4
    0 Votes
    4 Posts
    115 Views
    mzimmersM
    @JonB yeah, I've seen this before. If I'm reading this case correctly, the variable s2 is no longer needed by line 115, and has either been trashed or no longer properly maintained by the debugger.
  • insertPlainText valgrind error.

    Solved
    17
    0 Votes
    17 Posts
    277 Views
    T
    @JonB Definitely is, thanks again for the help Jon