Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Qt Widget content refreshing issue

    Unsolved
    3
    0 Votes
    3 Posts
    214 Views
    SGaistS
    Hi, Without any code it's almost impossible to guess what might be going wrong. The best thing to do is to reduce your code so that only the faulty widget is present and exhibits this behaviour.
  • 0 Votes
    8 Posts
    1k Views
    Christian EhrlicherC
    @Bob64 said in Very intermittent "QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread": I should try deferring the construction of the QTcpSocket until the thread has started Yes. Or try to reproduce it in a small example. Does not look that hard 🙂
  • App crashing with custom drag and drop for QTabBar (Qt 6.5.2 for MacOS)

    Unsolved
    5
    0 Votes
    5 Posts
    599 Views
    jsulmJ
    @cadol001 You should thank @Abderrahmene_Rayene :-)
  • [SOLVED] QStatusBar - Permanent widget on the left

    14
    0 Votes
    14 Posts
    15k Views
    D
    @Abderrahmene_Rayene Sorry to bring this old topic up as well. But I do believe if you do mainWindow()->statusBar()->addPermanentWidget( new widget,1); it will put the widget on the left side, 0 will be default to the right.
  • QScrollArea hates QTabWidget ?

    Unsolved
    7
    0 Votes
    7 Posts
    515 Views
    S
    [image: 0105f950-f536-4bda-8a7f-6b4eeb4189df.png] Things in the middle getting squished, I have no idea why. The vertical size policy is preferred. The list widget at the top is set to minimumExpanding. The bottom most groupbox has also preferred vertical size policy. But this isn't getting squished. why.....
  • how to exlucde sqldrivers?

    Unsolved
    2
    0 Votes
    2 Posts
    131 Views
    jsulmJ
    @big-dick said in how to exlucde sqldrivers?: the whole project add mysql dependency Your application should work just fine without Qt MySQL plug-in.
  • How can I upload files to an Amazon S3 server with qt or c++ ??

    c++ http qt 5.4.1
    9
    0 Votes
    9 Posts
    8k Views
    SGaistS
    @Abelix hi and welcome to devnet, It was a long time ago but yes. You have to follow the specification and it works.
  • Dropping network connection leads app to freeze if a remote db is open

    Solved
    2
    0 Votes
    2 Posts
    185 Views
    Z
    @Mark81 see sysctl net.ipv4.tcp_keepalive_time, you should reduce it to something reasonable for you (7200 secs is default afair).
  • DBus async response. Correct way.

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • Build Qt Static Make Error - [SOLVED]

    18
    0 Votes
    18 Posts
    32k Views
    D
    @Mihir i think problem is in your gcc version. i also had that problem and i change my gcc version to gcc 9.5.0 sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y sudo apt install g++-9 gcc-9 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 80 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 sudo update-alternatives --config gcc and try again with configuration
  • How to display my String or Qstring in QLabel using button?

    Unsolved
    2
    0 Votes
    2 Posts
    183 Views
    jsulmJ
    @JacobNovitsky Well, connect a slot to https://doc.qt.io/qt-6/qabstractbutton.html#clicked and in that slot set the string in QLabel using https://doc.qt.io/qt-6/qlabel.html#text-prop
  • QOpcUa: inspecting the cause of a connection error

    Unsolved
    1
    0 Votes
    1 Posts
    118 Views
    No one has replied
  • Unexpected blank line before QTextFrame

    Unsolved
    1
    0 Votes
    1 Posts
    87 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Pagination of a QTextDocument

    Unsolved
    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Q_ARG return type in Qt 6.5

    Unsolved
    4
    0 Votes
    4 Posts
    692 Views
    M
    I reviewed the old code and added the following definition: #define Q_ARG_OLD(type, data) QArgument<type >(#type, data)
  • How to include my project B with Project A

    Unsolved
    2
    0 Votes
    2 Posts
    153 Views
    jsulmJ
    @JacobNovitsky said in How to include my project B with Project A: I believe I need to make some kind of Library? Yes, you can make the project you want to include a library. Or you can simply add the code of that project to your other project. It really depends what you want/need. See https://doc.qt.io/qt-6/sharedlibrary.html for shared libraries.
  • How to add a text label with every shape I draw using QPainter

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    W
    Thank you so much for sharing your answer it was very helpful to me again.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    59 Views
    No one has replied