Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QListView vertical scroll bar not showing up.

    Unsolved
    8
    0 Votes
    8 Posts
    919 Views
    Christian EhrlicherC
    Yes. Painting inside a table/list (and outside a cell) is something I've never seen before.
  • using QRegExp and Validator in Stylesheet?

    Solved
    5
    0 Votes
    5 Posts
    548 Views
    A
    @JonB Thanks for the clarity information. I was thinking the same .
  • Showing warning from a thread

    Solved
    5
    0 Votes
    5 Posts
    470 Views
    S
    First of all, what the others already suggested is correct and works fine. However, I myself find it to cumbersome to introduce a slot for this. There is a way to execute some function in the context of the event loop of a different thread (ui code has to be executed inside the main thread): QMetaObject::invokeMethod(qApp, [](){ QMessageBox::warning(...); }); Just make sure to not capture anything by reference in the lambda to avoid lifetime issues.
  • What's the best way for doing this?

    Unsolved
    6
    0 Votes
    6 Posts
    506 Views
    jsulmJ
    @Alvein Create a QWidget containing what you want to put into MainWindow and these Entities. Then you can edit this QWidget in designer and you can add it to your entities and MainWindow as you like.
  • How to send/receive a file from samba shared folder?

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    MarKSM
    @mrjj This is very resourceful and informative. I got my answer. Thanks!
  • Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner

    Unsolved
    3
    0 Votes
    3 Posts
    304 Views
    S
    @SGaist Thank you for your suggestion. I will try what have you suggested. many thanks.
  • Qudpsocket

    Unsolved
    4
    0 Votes
    4 Posts
    374 Views
    jsulmJ
    @satyanarayana143 said in Qudpsocket: I will stop sending Do you mean you do not want to stop sending but for some reason it stops? Then please show your code. keepalive does not make sense for connectionless protocalls like UDP as already stated and your problem is most probably in your code.
  • Create multiple instances of an object.

    Unsolved
    1
    0 Votes
    1 Posts
    155 Views
    No one has replied
  • How to handle QUrl with spaces

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    JKSHJ
    @Abhi_Varma Have you checked if the URL is valid? What do you get when you call: qDebug() << url.isValid(); qDebug() << url.errorString();
  • 0 Votes
    24 Posts
    3k Views
    JKSHJ
    @canid said in Why can't I see the description of QSS in the help document of qt5.15.2. There used to be: [image: fd522d46-6d6e-49ee-9342-22b701c4853b.JPG] The string "qss" does not exist in the Qt documentation, so Qt Creator never let us search for "qss". Even Qt 4 docs don't contain "qss" (see https://www.google.com/search?q=site:doc.qt.io/archives/qt-4.8/+"qss" ) I think you remembered wrongly -- search for "style sheet" instead.
  • Is there a loading widget?

    Unsolved
    5
    1 Votes
    5 Posts
    979 Views
    Kent-DorfmanK
    @qwe3 said in Is there a loading widget?: how to change speed of move blue rectangles in this progressBar? how to change the amount of blue rectangles in progressBar? I know that I can change width in styleSheet to 20 px, but I would like to have width = 10 px, but I would like to change percent of blue rectangles to 20% in progressBar. If you don't like the granularity of the QProgressBar then you'll have to design a custom widget that does what you need. Looks like the granularity of progress is fixed or precacluted by the stock widget.
  • 0 Votes
    2 Posts
    776 Views
    enjoysmathE
    Re: [Unable to compile with MSVC 2019 - Cannot run cl.exe](but vcvarsall.bat looks all correct) I built SymbolicC++ as a static library but found out its much easier just to INCLUDEPATH a subdirectory made up of all the header files. So I was able to switch back to MinGW kit, which "solves" this for me.
  • QDateEdit Overflows Border

    Unsolved
    4
    0 Votes
    4 Posts
    391 Views
    SGaistS
    If you can reproduce it with a minimal example, then it's likely a bug. Note that you might want to check the latest beta of 6.1 to seen if there part has improved.
  • Including files

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    SGaistS
    Because using sleep to ensure your process is done is not the right way to ensure it has run and that it happened without error.
  • [SOLVED]QFileSystemModel set root path

    20
    0 Votes
    20 Posts
    14k Views
    terma.abaT
    What if the view is QML ListView and has no setRootIndex()? QFileSystemModel is badly designed, it makes wrong assumptions on functions you have to be able to call on the view.
  • Update All Controls every 200ms

    Solved
    10
    0 Votes
    10 Posts
    669 Views
    SGaistS
    You're welcome ! Out of curiosity, why do you need to send the checkbox status every 200ms ?
  • QMenuBar does not show action checkbox

    Unsolved qmenubar qcheckbox qaction
    4
    0 Votes
    4 Posts
    903 Views
    SGaistS
    If this is reproducible with C++, then C++ since the Python bindings are built on top of it.
  • Qt Linguist generate senseless files in project folder on MacOS. Why?

    Unsolved
    2
    0 Votes
    2 Posts
    147 Views
    SGaistS
    Hi, Which version of Qt ? On which version of macOS ? How are you using Linguist ? How does your .pro file look like ?
  • Qt Gradient stylesheet not applying

    9
    0 Votes
    9 Posts
    15k Views
    L
    Thanks @vezprog, it worked very fine.
  • Linguist ignoring qStr. Why?

    Solved
    9
    0 Votes
    9 Posts
    940 Views
    B
    @sierdzio Thx