Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Resizing dynamically created QPushbuttons within a QTableWidget

    Unsolved
    5
    0 Votes
    5 Posts
    517 Views
    T
    @jsulm I see. Thank you. https://forum.qt.io/topic/150252/dynamically-creating-a-vector-of-push-buttons-to-a-grid-layout-in-qt-c?_=1696555429922 I wasn't entirely sure how to track the player movements and scoring (similar to tic tac toe) using a QGridLayout. The code in the link was something I found online, while trying to figure out how to implement it.
  • QT designer with custom widget plugin setting incorrect qualified enum property name

    Solved
    3
    0 Votes
    3 Posts
    570 Views
    H
    @Christian-Ehrlicher damn, you are correct. Making it an Enum fixed it. Thanks!
  • QWebSocketServer does not accept new connections

    Unsolved
    6
    0 Votes
    6 Posts
    541 Views
    SGaistS
    I don't think they should. Can you reduce your code a minimal example that still exhibits this behaviour ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • how to mirror Sprite / SpriteSequence

    Solved
    2
    0 Votes
    2 Posts
    281 Views
    S
    If this helps to anyone then: transform: Scale { origin.x: image.width / 2 not to just flip, but flip in the middle of the picture xScale: -1 // 1 is for no scale... 0.5 for half size, 0 for 0 size, -1 to flip totaly vertically }
  • Real Time 3D Surface Plots

    Solved
    3
    0 Votes
    3 Posts
    316 Views
    H
    For the question I asked, I found a way. Instead of using c++ classes I used qml. I referred the surface3D qml example. After making a basic grade, I gave a few list elements to the list model and used append and set method to add or change vertex values. To loop either use a timer or function with for loop.
  • Sending the signal to the classes I created in order

    Solved
    5
    0 Votes
    5 Posts
    289 Views
    yy_pc_programmerY
    @Christian-Ehrlicher I understand now. thanks
  • Repeater does not work for Sprite inside SpriteSequence?

    Unsolved
    1
    0 Votes
    1 Posts
    121 Views
    No one has replied
  • Unable to send HTTP GET request

    Unsolved
    3
    0 Votes
    3 Posts
    224 Views
    A
    @Christian-Ehrlicher alright, stupid me, works now when I connected the finished signal to my slot...
  • QT 6.5.2 Maintenance tool no additional libraries

    Solved
    3
    0 Votes
    3 Posts
    485 Views
    R
    @sierdzio It worked! Thank you!
  • QProcess cannot create pipe - Too many open files - but I don't understand why

    Unsolved
    4
    0 Votes
    4 Posts
    801 Views
    JonBJ
    @Mark81 There have been discussions about whether pinging a server is a useful thing to do. Mostly it seems better to do communications when you have something you actually want to communicate, and handle it not there or reconnecting at that time, not pinging to find out whether it is there or to keep connection open. There is also a possible alternative of send keep-alives on the socket instead. If I were going to do the "ping" approach, I would look to use Qt networking rather than an external ping program. Ping is pretty simple so you should not need an external program (with QProcess, checking what ping is outputting, etc.) to do what it does. For instance, http://www.ping127001.com/pingpage/ping.text is apparently the source of ping from 1983, doubtless there are other implementations in C++ if you Google.
  • Qt SVG isn't working on Ubuntu with Qt 6

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    D
    It seems like it was a caching issue. I solved it by deleting the build directory and re-compiling. Thanks for your help.
  • Playing SoundEffect freezes app

    Unsolved
    3
    0 Votes
    3 Posts
    202 Views
    M
    @Pl45m4 Thanks for your reply. Unfortunately, I don't have enough resources to update my app for newer Qt. We have 3 different sounds that can play during different situations in the game, any of the sound produces the issue.
  • Window maximised state not retained over close

    Solved
    2
    0 Votes
    2 Posts
    187 Views
    Pl45m4P
    @Perdrix What OS are you using? Note this from here: On X11, this might not work because an invisible window does not have a frame yet. The window manager will decorate the window later. When this happens, the window shifts towards the bottom/right corner of the screen depending on the size of the decoration frame. Although X provides a way to avoid this shift, some window managers fail to implement this feature. In addion, it seems that there are a lot of bugs when trying to restore geometry from settings. There are also some workarounds https://stackoverflow.com/questions/15111788/qwidgetsave-restoregeometry-loses-window-size-if-maximized-bug-or-feature https://stackoverflow.com/questions/44005852/qdockwidgetrestoregeometry-not-working-correctly-when-qmainwindow-is-maximized
  • drawRect not show left and top border line

    Unsolved paintevent layout drawrect
    4
    0 Votes
    4 Posts
    1k Views
    Christian EhrlicherC
    You should create a bug report about this with a minimal, compilable example. I took a short look at the code but can't see any obvious here.
  • Is there a signal that triggers right after .exec() is called

    Unsolved
    6
    0 Votes
    6 Posts
    577 Views
    S
    Even though a 0 delay timer does get called immediately, I am not entirely sure how that will interact with the splash screen. The splash screen needs to run in the main thread and might be blocked by you loading the config files (depends how long loading the config files takes if this will be an issue). Though, a 0 delay timer will execute when the event loop is idle. This means that at least the show() for the splash screen will be executed before loading the config files. However, if the user switches back and forth between other applications and the splash screen, your app might be identified as hanging and not update the splash screen (maybe leaving a white rectangle).
  • Why export excel in windows10 normal, in windows7 export will crash?

    Solved
    24
    0 Votes
    24 Posts
    4k Views
    M
    @duncan98 At the frist make sure that your office excel is activated then use CoInitialize(nullptr); befire taking export. this function can find in #include <objbase.h>
  • Problem with Qt6 on MacOS 14.0 (Somona)

    Solved bug problem qt6 macos 14.0 osx somona
    13
    0 Votes
    13 Posts
    2k Views
    E
    @hskoglund Thank you, that solution solved my issue. A note for anybody else: I was running 6.6.0-rc and thought that it would have the patch. Once I downloaded 6.5.2 and used that kit it worked.
  • Porting Graphics App from wxWidgets

    Unsolved
    2
    0 Votes
    2 Posts
    323 Views
    Pl45m4P
    @Mike-Moreton said in Porting Graphics App from wxWidgets: So I'm pretty new to all this Qt stuff. I think I can handle all the widgets based UI, but I'd really appreciate any pointers on where I should be looking for the graphics side of things. There seem so many options! Start here: https://doc.qt.io/qt-6/graphicsview.html check out the QGraphicsView examples: https://doc.qt.io/qt-6/examples-graphicsview.html And this one for painting on Widgets: https://doc.qt.io/qt-6/qtwidgets-widgets-scribble-example.html
  • What does QMultiHash::insert(key, value) return?

    Solved
    8
    0 Votes
    8 Posts
    485 Views
    Christian EhrlicherC
    https://bugreports.qt.io/browse/QTBUG-117757