Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • connect to sql server ?

    Unsolved
    2
    0 Votes
    2 Posts
    145 Views
    mrjjM
    Hi What error do you get from trying to open the connection ? Should give a hint. Did you also include any client Database DLLs in setup,exe ?
  • What is the best way to create scalable UI and write code for it?

    Unsolved designer creator scalable
    5
    0 Votes
    5 Posts
    1k Views
    mrjjM
    Hi For the scalable part. You must use Layouts from the very start. https://doc.qt.io/qt-5/layout.html
  • Painting into QImage with several layer vs one QImage (problem)

    Unsolved
    1
    0 Votes
    1 Posts
    170 Views
    No one has replied
  • Q3DScatter text labels

    Unsolved
    1
    0 Votes
    1 Posts
    127 Views
    No one has replied
  • Why is this particular database table returning empty data frame through Python?

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    SGaistS
    If you need to support different database backend within your applications, if not using Qt's own SQL module, you should consider using SQLAlchemy.
  • qt.gui.icc: fromIccProfile: failed minimal tag size sanity

    Unsolved
    2
    0 Votes
    2 Posts
    5k Views
    C
    Convert the image ICC profile to something more standard to remove the message. https://stackoverflow.com/questions/65463848/pyqt5-fromiccprofile-failed-minimal-tag-size-sanity-error
  • QTreeView - show expand indicator/arrow for parents without children (lazy loading)

    Solved
    6
    0 Votes
    6 Posts
    692 Views
    E
    @JonB Sorry, yes, it does work with both. Thanks for your help.
  • Linking QML file to Python file to retrive infomation from user input?

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    4
    @eyllanesc Ahh gotcha, Thank you for taking the time to help me out man. Very much appreciated!
  • Embedding Facebook Messenger in Qwidget

    Solved
    2
    0 Votes
    2 Posts
    185 Views
    raven-worxR
    @Mary_M you can simply show https://www.facebook.com/messages/ in a QtWebEngineView
  • buttons of different sizes

    Solved
    5
    0 Votes
    5 Posts
    320 Views
    Thank YouT
    @IknowQT You can use any type of techniques to do frontend. Another option is Using spacer and using maximum width [image: fd4d863e-ed64-45f1-98e9-a0af4b678bca.jpg] See on the properties panel on vertical policy As I said there are many other techniques to obtain same type of design. [image: 6ea000b1-6329-40c1-b579-33303b06f066.jpg] This one is output
  • method 'connect' vanished!

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    Thank YouT
    @Strangelove Hello Sir, Mark it as solved then Thank You
  • System Version

    Unsolved
    4
    0 Votes
    4 Posts
    612 Views
    Cobra91151C
    Hello! You can use the QOperatingSystemVersion class (https://doc.qt.io/qt-5/qoperatingsystemversion.html). The current() method (https://doc.qt.io/qt-5/qoperatingsystemversion.html#current) returns the current OS and its version number. Feel free to check out my code below. Code: QOperatingSystemVersion currentOSVersion = QOperatingSystemVersion::current(); if (currentOSVersion >= QOperatingSystemVersion::Windows10) { qDebug() << "Windows 10 build: " + QString("%1.%2.%3").arg(QString::number(QOperatingSystemVersion::current().majorVersion()), QString::number(QOperatingSystemVersion::current().minorVersion()), QString::number(QOperatingSystemVersion::current().microVersion())); } else if (currentOSVersion >= QOperatingSystemVersion::Windows7) { qDebug() << "Windows 7 build: " + QString("%1.%2.%3").arg(QString::number(QOperatingSystemVersion::current().majorVersion()), QString::number(QOperatingSystemVersion::current().minorVersion()), QString::number(QOperatingSystemVersion::current().microVersion())); } My code only checks for Win 10 and Win 7, but you can check also for other operating systems for example: Win 8 and Win 8.1. Happy coding!
  • Why does the size of the file grow so much with each release without changing the code?

    Unsolved
    54
    0 Votes
    54 Posts
    10k Views
    D
    @Thank-You Normal work may be temporary. I have good and bad times here
  • QCompleter custom popup position is not correct

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    A
    @eyllanesc Thank you a lot! It's really simple than I thought, you saved me from doing extra works
  • QSortFilterProxyModel will filter but not sort

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    JonBJ
    @ocgltd , @KroMignon Upon review, that sample code does go proxyView->sortByColumn(1, Qt::AscendingOrder);. I searched it, and my code, for sort(. So maybe that is in my code and would explain.
  • Touchscreen behaviour via RDP

    Unsolved
    8
    0 Votes
    8 Posts
    620 Views
    SGaistS
    5.15.3 means a commercial LTS release, they should leverage that and check with the Qt Company.
  • Spell checking for QML TextEdit. How?

    Solved
    3
    0 Votes
    3 Posts
    518 Views
    eyllanescE
    @bogong The Spellchecker you must implement using QSyntaxHighlighter, you can take the following examples as base: https://stackoverflow.com/a/53837628/6622587, where a QSyntaxHighlighter is placed to a TextEdit (TextArea inherits TextEdit) https://stackoverflow.com/a/67865082/6622587, where I implement spellchecked using QSyntaxHighlighter but in python that can be translated into C ++ using hunspell and QRegularExpression.
  • QGraphicsScene hover*Events to all item under mouse cursor.

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    ABDUA
    @SGaist Out of curiosity, why are you making three different items for what seems to be only one in the end ? I realized that my mistake was that I was creating separate elements when only one is created in the end. Having redone this, everything worked as it should. Thank you!
  • QtRO in non-qt dynamic library

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    VoukV
    I'll wait until Win10 support is fixed and IPC works also without unix domain sockets. But besides that issues it looks promising.
  • Cannot write a data to a virtual serial port ?

    Solved qserialport cpp serialport
    16
    0 Votes
    16 Posts
    3k Views
    E
    @J-Hilk Thank you all guys for your patient and sorry for my basic mistakes :). I fixed my issue. As you said, I expect the read without writing a data to serial port.