Skip to content
QtWS25 Call for Papers
  • 141k Topics
    705k Posts
    T

    I have made sample template project about this topic!
    Have a look :)
    https://github.com/tongmon/qt-frameless-windows

  • Jobs, project showcases, announcements - anything that isn't directly development
    4k Topics
    22k Posts
    Axel SpoerlA

    Click your profile on the top right, click on your nickname on the context menu appearing left of the mouse cursor.
    Then select "Edit Profile" and "Change Username".

  • Everything related to designing and design tools

    103 Topics
    318 Posts
    Christian EhrlicherC

    Dupe of https://forum.qt.io/topic/158270

  • Everything related to the QA Tools

    53 Topics
    156 Posts
    K

    Using RHEL 9.4, Squish 8 for Java, (python in test dev) Telling squish to type a string in many text entry fields in either java 11 or 17 app, presents as a randomly jumbled (malformed) entry.

    Example: trying to put a file path in a file path entry box...
    myPath = "/home/APP/folder/subFolder/file.txt"
    type(waitForObject(names.fileEntryField), myPath)

    In the app, the type command in the file field enters myPath as:

    /homAe/fPoldeP/rsu/fil.bFole/txdert (or similar, not the same every time) but cannot get it to enter the file path straight at all.

    Thoughts? We just got linux 9.4 stood up and this is just one example of fields using the type command being malformed.

  • Everything related to learning Qt.

    372 Topics
    2k Posts
    M

    To install Qt 5.15 using a Qt Education License, first, download the Qt online installer from the official Qt website. During the installation process, log in with your Qt account linked to your educational license. Select the desired Qt version (5.15) from the available options and proceed with the installation. Ensure you configure the environment variables correctly.

    For those interested in advancing gender equality, visit https://prazna.org/, an NGO dedicated to empowering women.

  • 2k Topics
    12k Posts
    E

    I have been using PyODBC successfully to connect to and query a MSSQL database.
    I now want an app that uses PyQt5 for GUI and I noticed that there is a SQL module in PyQt5, so I thought "Why not use that so I have fewer dependencies and imports?"
    I could just go on using PyODBC, but I would like to use PyQt5 for learning purposes, if nothing else.

    I set up PyODBC as follows:

    def get_cnx_cursor(): connect = pyodbc.connect( "Driver={FreeTDS};" "Server=MYSERVER;" "Port=1433;" "Database=mydatabase;" "UID=myusername;" "PWD=mypassword;" "TDS_Version=7.3;" return connect, connect.cursor()

    That works.

    Trying to set up connection with PyQt5:

    def createConnection(): connString = f'DRIVER={{SQL Driver}};"\ f'SERVER=MYSERVER;"\ f'PORT=1433;"\ f'DATABASE=mydatabase;"\ f'UID=myusername;"\ f'PWD=mypassword;" global db db = QSqlDatabase.addDatabase('QODBC3') db.setDatabaseName(connString) if db.open(): print('Connected') else: print('Connection Failed') createConnection()

    Returns "Connection Failed"

    I don't know what I'm doing (obviously) and can't find the info I need.

  • 4k Topics
    17k Posts
    SGaistS

    qApp->processEvents(QEventLoop::ExcludeUserInputEvents)

    C'est une macro qui return l'object Q(Core,Gui)Application.

    processEvents est de toute façon une méthode static donc c'est la bonne event loop qui est appelée. Ce qui n'est pas recommandé est l'usage de cette méthode.

  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k Topics
    10k Posts
    Y

    It seems that it's a temporary down. Problem solved.
    Also see https://forum.qt.io/topic/154616/unable-to-reach-to-https-code-qt-io