Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Qt-based programs fail to start in 5120x1440

    Unsolved
    10
    0 Votes
    10 Posts
    852 Views
    SGaistS
    The issue was auto solved because there has been no feedback to the request for tests. If you can do what was suggested there and add some more information to it then the bug can be reopen.
  • Network problems

    Solved
    4
    0 Votes
    4 Posts
    389 Views
    SPlattenS
    @Kent-Dorfman It is solved.
  • QNetworkInterface getting a name that means something?

    Solved
    2
    0 Votes
    2 Posts
    307 Views
    Kent-DorfmanK
    mark as solved?
  • Inserting image and date into sqlite3 database

    Unsolved
    3
    0 Votes
    3 Posts
    240 Views
    Kent-DorfmanK
    YMMV inserting images into a database. BLOB field support is often a special case, if supported by the DB at all.
  • How to have GUI based program wait until user enters acceptable input

    Unsolved
    5
    0 Votes
    5 Posts
    786 Views
    P
    @JonB @JoeCFD Okay I just switched to using QMessageBox then, I had not thought about running this on different operating systems. Thank you for the tip. @Christian-Ehrlicher thank you for the textChanged input. I am going to try to implement that
  • How add a Crypto++ Library version 8.6 in Qt 6

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    artwawA
    @Alby Download binary and headers. In your .pro file add INCLUDEPATH, DEPENPATH and LIBS manually or as described in the manual. After that you can #include headers in your sources. If you do #include but QtCreator complains that file can't be found - you did the above wrong.
  • Top-Level Window vs Window in QGuiApplication?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    JonBJ
    @CJha Yes, exactly that.
  • Get all items from within groupbox of pyqt

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    JonBJ
    @poordev123 Just so you know: it's QObject::findChildren() so you can actually call it on any QObject, and that includes any and all QWidgets. QGroupBox is a QWidget itself, and there are other such "container" widgets for which this works.
  • Qt dynamic translation on a serialized enum key in a comboBox

    Unsolved
    10
    0 Votes
    10 Posts
    927 Views
    Christian EhrlicherC
    @Habibie said in Qt dynamic translation on a serialized enum key in a comboBox: If so, I noticed, the lupdate utility does not pickup all the enum keys and I reckon that's the problem. Because you do not properly define them - see QT_TRANSLATE_NOOP documentation.
  • MySQL reconnect option is not working with upgrade to mysql 8.0.26

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    I
    @Christian-Ehrlicher Thank you. I've seen that and double checked that MYSQL_VERSION_ID is correct. It appears as 80026 on the latest MySQL 8.0.26.
  • How to pass signal from one class to another.

    Solved
    12
    0 Votes
    12 Posts
    991 Views
    JonBJ
    @J-Hilk said in How to pass signal from one class to another.: you can connect without an receiver QObject You can indeed, but you cannot use that to connect to instances of the OP's Geometry, which is what he is trying to do. He might write, e.g., a static method in Geometry to use as the slot, but it won't then do what he has in mind, which is to "auto-connect" each instance created to main window's signal.
  • How can I connect 2 ui like login page and mainpage?

    Solved
    4
    0 Votes
    4 Posts
    334 Views
    K
    @jsulm Thanks.i can finally figure it out .i thought my question is too stupid when i asked this in stackoverflow.but it is ok now.Thanks for your help!
  • Infinite rows in QTableWidget?

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    JonBJ
    @Publicnamer It depends just what you want, what is in your model, and whether you know how much is in the backing model. Your question seems to relate to paging the data, or something based off that. Rather than looking at visual rects --- especially if they don't work --- the alternative is to look at the scrollbar. That reflects how far through the data the user is. One possible implementation is given in Pagination in QtableWidget, @raven-worx's algorithmic outline there. I have seen others (unfortunately can't find references) where the algorithm is to maintain the scrollbar height such that there is always a "gap" at the bottom which the user can scroll into, and that fires a fetch of more data and recalibration of the scrollbar, which still has a "gap" at the bottom. Think of when you use an application which produces large or endless output, like a web page receiving more and more data or showing photos where more and more are to come (e.g. some tumblr pages). The scrollbar always allows the user to scroll some more. @raven-worx's suggestion could be adapted to that. If you Google for stuff involving QTableWidget or QTableView and pagination you may find some useful code/ideas.
  • Build error when loading vs2019 project from qt creator

    Solved
    4
    0 Votes
    4 Posts
    264 Views
    jsulmJ
    @IknowQT You can define build folders for debug and release in QtCreator under Projects/Build & Run. Also, I would remove CONFIG += debug, debug/release mode is handled in QtCreator.
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    5 Views
  • How to determine if cell of a QTableWidget is currently visible?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    eyllanescE
    @Publicnamer Yes. I only point out the limitations of your solution for future readers. I am not saying that it is bad for you but I only warn the possible inconveniences for other users.
  • Qt UI design for the PinePhone?

    Unsolved
    9
    0 Votes
    9 Posts
    921 Views
    P
    @mattfbacon I find that QT_SCALE_FACTOR=2 does an amazing job at scaling. But I'm also wondering, is it real scaling at the pixel level, or is it just an OpenGL trick that makes that window bigger but the number of pixels in the window is unchanged?
  • 0 Votes
    16 Posts
    7k Views
    R
    @jazzco2 Right, but what's the solution? If an older windows dll fixes things, I could try finding and swapping it P.S. that thread talks about a different issue. It is a crash not a warning with strange behaviour and there is no solution there either
  • Running Qt app on phone vs desktop

    Unsolved
    6
    1 Votes
    6 Posts
    473 Views
    P
    @Bonnie The real problem here is that a screen of any size can be used like a desktop, or a phone screen. For instance the Raspberry Pi 7" is always used like a desktop UI. Thus it is a question of "user interface idiom" i.e. how the screen is meant to be used.
  • QProcess::start and GDB leading to missing symbols / ?? in stack

    Unsolved
    6
    1 Votes
    6 Posts
    924 Views
    U
    Yes and no - it seems to have been solved in an update. I checked it right now and the issue does not persist. I did not really find out what caused the problems.