Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Parse error at "__attribute__"

    Unsolved
    5
    0 Votes
    5 Posts
    545 Views
    A
    @sierdzio It seems that it is the MOC program can not handle "attribute", not g++.
  • QChar isSymbol, if "[" isn't a symbol what is it?

    Solved
    3
    0 Votes
    3 Posts
    401 Views
    F
    so there's also .isPunct() to check for punctuation.
  • QTextEdit document()->size is invalid

    Unsolved
    5
    0 Votes
    5 Posts
    430 Views
    W
    @Abderrahmene_Rayene There's got to be a way to do this without resorting to a text block. I just want the containing view to automatically resize to match the needed height of the text edit. The containing view is a table widget cell.
  • 1 Votes
    12 Posts
    2k Views
    Chris KawaC
    @JonB said: Which I have always regraded as devil's spawn Agreed. I see blockSignals() as an advanced tool to be used with great care and only when you're very aware of all consequences in given case. Similar to sender(). Definitely not something to be applied on a "let's see if it helps" basis.
  • QMediaPlayer says !hasAudio

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    JonBJ
    @whatabout You would raise a bug report at https://bugreports.qt.io/
  • How to configure for Vulkan?

    Solved
    22
    0 Votes
    22 Posts
    17k Views
    J
    I found an interesting piece of information that -recheck-all is needed if it has been configured before.
  • QDateTimeFromString question

    Unsolved
    3
    0 Votes
    3 Posts
    214 Views
    PerdrixP
    @Paul-Colby Thank you
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • QTreeView's disabled row background colour is not right in Qt6

    Unsolved
    5
    0 Votes
    5 Posts
    498 Views
    B
    @Axel-Spoerl My bad! Actually, Qt 6.5.1 is being used and not 6.2
  • QtDesigner container plugin with custom page class

    4
    0 Votes
    4 Posts
    2k Views
    redtideR
    @ogoffart In your impementation of QDesignerContainerExtension::insertWidget, you can create your own custom widget instead of using directly the one passed as parametter (maybe you can just ignore it or you need to call deleteLater on it) I tried this and I'm pretty sure you can't do it in Qt 5.15 at least, you end up with a Qt Designer warning dialog saying that that's an unmanaged widget and you should use the domXml() instead (Heaven knows how); at some point later it makes crash the designer when adding a child to the custom widget page.
  • Migration to Qt 6.6.1

    Unsolved
    18
    0 Votes
    18 Posts
    2k Views
    D
    @SGaist He is using an iMac with AMD GPU - this would make it an intel cpu. @SPlatten I guess you are using qmake for your app? In any case what you could do: create an xcode project of your app with qmake and compile it using xcode. Follow this link to edit run scheme for the diagnostics malloc magic Xcode provides. Run with Xcode Hopefully this will lead you to your problem. Alternatively I think clang´s address sanitizer may be of help as well. For this to work sort of reliably you can add the following compiler flags to your app: -O1 -g -fsanitize=address -fno-omit-frame-pointer This should give reasonable performance while maintaining debugging capability. Note however that I have never used the Xcode approach on macOS. I am using CMake with the address sanitizer only. EDIT: AFAIR valgrind was never of much use on macOS and is much better supported on Linux.
  • Trouble with QIODevice/QAbstractSocket

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    SGaistS
    Hi, From the looks of it, I would say that the transaction is what you are looking for.
  • A pop-up window will appear in QT Bluetooth scanning window11

    Unsolved
    4
    0 Votes
    4 Posts
    344 Views
    H
    @ChrisW67 A software that connects to Bluetooth Low Energy, which mainly uses Bluetooth modules, and the Qt version is compiled by Qt 5.12.11+VS2019. I tested it on two WIndows11 testers in the customer, only scanned the device, and then used spy++ to locate the pop-up program was caused by the second screenshot program
  • How to compile Qt 6 sources with openssl 3.0?

    Unsolved
    1
    0 Votes
    1 Posts
    897 Views
    No one has replied
  • widget overlapping using layout

    Solved
    10
    0 Votes
    10 Posts
    15k Views
    SGaistS
    @sani1486 hi and welcome to devnet, Check the stackingMode property. It allows to check whether you see on widget at a time or all of them.
  • 0 Votes
    26 Posts
    8k Views
    SGaistS
    @StudentScripter great ! Then please mark the model as solved using the "Topic Tools" button or the dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)
  • QWidget and addanchor?

    Unsolved
    6
    0 Votes
    6 Posts
    439 Views
    SGaistS
    @SPlatten hi, You can add a widget to a QGraphicsScene and you get a QGraphicsProxyWidget that you can then add to your layout.
  • Connect trouble

    Unsolved
    5
    0 Votes
    5 Posts
    380 Views
    M
    @marius-thorre i was thinking it change himself
  • Help with sender() analysis

    Unsolved
    7
    0 Votes
    7 Posts
    768 Views
    JonBJ
    @AnneRanch All I can say is if you try something like: // assume array has >= 3 elements for (int index = 0; index < 3; index++) connect(subMenu_checkableActionInMenu[index], &QAction::triggered, this, [=]() { qDebug() << index; } ); I would expect you to see 0/1/2 according as which one you click on. You might like to test that.
  • QPdfDocument and QPdfView : display PDF annotation and highlight

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    JoeCFDJ
    @yuanxin Or if your app is not commercial, check poppler out. https://poppler.freedesktop.org/api/glib/poppler-Poppler-Annotation.html