Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Remove Titlebar DockWidget?

    Solved qt c++ dockwidget
    8
    0 Votes
    8 Posts
    933 Views
    S
    @Pl45m4 @SGaist Ok well i got is removed by setting the titlebar widget to fixed height of 1 and background transparent. This way it retains its dockability.
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • How to conduct developer authentication

    Unsolved
    5
    0 Votes
    5 Posts
    275 Views
    C
    @Mingzhi1213 You might find this thread useful: https://developer.apple.com/forums/thread/712005
  • is there any tool available that create qml file from mockup ?

    Solved
    3
    0 Votes
    3 Posts
    281 Views
    Q
    @SGaist is there any tool that convert invision based mockup into qml
  • Overlaying responsive Widgets

    Solved
    4
    0 Votes
    4 Posts
    267 Views
    S
    @JonB Nice, I guess that solves my problem. The main QGraphicsView is added to the layout and thus remains responsive when resizing. For the minimap I just set the parent, but don't add it to the layout so that it is on top and uses absolute positioning. I then found the resizeEvent so that I can manually set the position to the right hand side based on the new widget size. I'm not sure if this is the best solution available, but it seems to be doing what I was looking for. Thanks for the help!
  • Googlemaps plugin Question

    Unsolved
    2
    0 Votes
    2 Posts
    433 Views
    D
    @myPublic Have you solved your problem yet? Can I get the code file and instruction to deploy? I also don't know how to implement google map in qt.
  • 0 Votes
    36 Posts
    32k Views
    K
    It's a really old topic, but still usable so: for the empty space below the cells you can use the viewport: tableWidget->viewport()->setStyleSheet("background-color: #888;");
  • executable no longer executes

    Solved
    7
    0 Votes
    7 Posts
    385 Views
    S
    To make things portable on Linux, use an AppImage. We use a combination of linuxdeploy and linuxdeployqt to create the AppImage. Only downside: The Linux machine you are compiling on needs to be an older Linux version. linuxdeploy will deny operation on newer Linux versions. You might want to use a virtual machine (or Docker container) for that.
  • Optimizing GPU Usage for Large Images in Qt Application

    Unsolved
    11
    0 Votes
    11 Posts
    895 Views
    S
    At some point the image needs to be decompressed. This most likely happens in RAM first and is then send over to the GPU. Have you thought, what the GPU might be doing with the image? It just resizes it to the viewport. The best you can do is to dynamically resize the image to the viewport size and have Qt copy that to the GPU instead. If you are zoomed in, just send that part of the image instead of the whole image. Because QML is heavily using the GPU in the background (it is faster) the GPU needs to have access to the image it should display. On most computers the GPU cannot directly access the RAM.
  • Qt 6.5 FTP access (with SCXML); Permissions on Windows needed?

    Solved
    3
    0 Votes
    3 Posts
    252 Views
    S
    @jsulm Thanks for the advice! I found the solution in this forum: https://forum.qt.io/topic/134540/warning-ecmascriptdatamodel-plugin-not-found-after-deployment I was missing dlls which the windeployqt didn't add automatically. I'll mark this as solved
  • Storing and setting widget values using arrays?

    Unsolved qt c++ array widget layout
    3
    0 Votes
    3 Posts
    673 Views
    JonBJ
    @StudentScripter You can put pointers to widgets into arrays/lists/maps as you please and use those for iterating through them etc. You can't get Designer to do that for you, so you have to manually populate the arrays/lists from the ui->... instance variables yourself (after setupUi()). You can also visit all widgets of a given type, without setting anything up, via topWidget->findChildren<QLineEdit *>(). You can "group" widgets at design-time by e.g. creating a "holding" container QWidget or QFrame or QGroupBox if that helps. For buttons there is also QButtonGroup.
  • Qt 6.4.2 and FTP Upload - Windows 11

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    S
    @Juan-de-Dironne I had similar problems with FTP. Qt 5 and FTP worked fine With QT 6, I had to use ScXML to get my app to access FTP site. It is possible but a lot of work is needed to get scxml to to access the FTP site of choosing
  • Can't connect to PLC via Qt Opc UA module

    Unsolved qt6.6 opcua opc client
    4
    0 Votes
    4 Posts
    946 Views
    K
    No ideas at all..?
  • Number of active QThreads

    Unsolved
    3
    0 Votes
    3 Posts
    297 Views
    C
    @TurashviliAlik Since you are creating these QThread objects why not just keep a QList<QThread*> . Alternatively, parent them all to a single QObject (like qApp) and then find them with QObject::findChildren() QList<QThread *> threads = qApp->findChildren<QThread*>(); Like @jsulm, I am not sure why you would need this.
  • Unable to set video in the background in Qt 6.6.2

    Unsolved
    3
    0 Votes
    3 Posts
    227 Views
    jsulmJ
    @Shubham08 said in Unable to set video in the background in Qt 6.6.2: but on latest version its not working we can see only video no buttons or any ui component on it. You do not show how you're putting other widgets on top of QVideoWidget
  • Issues with QtMQTT install on Mac (Qt 6.6.2)

    Unsolved
    2
    0 Votes
    2 Posts
    224 Views
    jsulmJ
    @pleaseHelpIAmDesperate You should better follow https://stackoverflow.com/questions/68928310/build-specific-modules-in-qt6-i-e-qtmqtt/71984521#71984521 and install the build modules using: ~/Qt/Tools/CMake/bin/cmake --install . --verbose no need to copy anything manually.
  • Problem building simple exemple with qt 6.6.2

    Unsolved
    5
    0 Votes
    5 Posts
    355 Views
    Ronel_qtmasterR
    @mzimmers yes it does
  • What can I do for my QtWidget-Program's Window correctly positioned on the screen?

    Unsolved
    45
    0 Votes
    45 Posts
    10k Views
    Seb TurS
    @foghere2023 thanks for the tip , mid 2024 and the issue is still here with wayland
  • POD as PROP gives multiple definition error

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • How to group two widgets so that they look like one widget?

    Unsolved
    4
    0 Votes
    4 Posts
    267 Views
    JonBJ
    @mjs225 @mpergand said in How to group two widgets so that they look like one widget?: And create your objects dynamically (with new), i'm suprised this doesn't crash ! Still suggest you follow @mpergand's advice for this, for safety.